/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css */
  line-height: 1.6;
}

.page-cockfighting a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

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

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

.page-cockfighting__dark-bg {
  background-color: #08160F; /* Background */
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, small padding-top here */
  background-color: #08160F; /* Background */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -150px; /* Overlap image slightly, but not text on image */
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  filter: brightness(1.1);
}

.page-cockfighting__cta-button--small {
  padding: 12px 25px;
  font-size: 1.1em;
}

.page-cockfighting__cta-button--large {
  padding: 18px 35px;
  font-size: 1.4em;
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: #11271B; /* Card B G */
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-cockfighting__feature-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__feature-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__feature-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: #11271B; /* Card B G */
}

.page-cockfighting__type-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__type-item {
  background-color: #08160F; /* Background */
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__type-title {
  font-size: 1.6em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__type-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* How to Join Section */
.page-cockfighting__how-to-join-section {
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.page-cockfighting__step-item {
  background-color: #11271B; /* Card B G */
  padding: 20px 30px;
  border-radius: 10px;
  border-left: 5px solid #57E38D; /* Glow */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  background-color: #11271B; /* Card B G */
}

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

.page-cockfighting__strategy-card {
  background-color: #08160F; /* Background */
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__strategy-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting__strategy-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Security Section */
.page-cockfighting__security-section {
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-cockfighting__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  border: 2px solid #2E7A4E; /* Border */
}

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

.page-cockfighting__security-item {
  background-color: #11271B; /* Card B G */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  border-left: 4px solid #57E38D; /* Glow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__security-item strong {
  color: #F2C14E; /* Gold */
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: #11271B; /* Card B G */
}

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

.page-cockfighting__promotion-card {
  background-color: #08160F; /* Background */
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__promotion-title {
  font-size: 1.6em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-cockfighting__promotion-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-cockfighting__faq-section {
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: #11271B; /* Card B G */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E; /* Border */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question:hover {
  background-color: #13994A; /* Slightly lighter green */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  font-weight: bold;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
  font-weight: bold;
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  background-color: #11271B; /* Card B G */
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  background-color: #11271B; /* Card B G */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
  .page-cockfighting__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0; /* body handles header offset, small padding-top here */
  }
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__paragraph {
    font-size: 1em;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__type-list,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__type-item,
  .page-cockfighting__strategy-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__faq-item {
    padding: 20px;
  }
  .page-cockfighting__feature-icon,
  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-cockfighting__security-image {
    margin: 20px auto;
  }
  .page-cockfighting__security-list {
    padding: 0 10px;
  }
  .page-cockfighting__security-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px;
  }

  /* Mobile responsive for images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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__hero-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Mobile responsive for buttons */
  .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-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .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-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

/* Ensure content area images are not too small */
.page-cockfighting img:not(.page-cockfighting__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* No filter property on images */
.page-cockfighting img {
  filter: none; /* Ensure no filter is applied by default */
}

/* Exception for hero image to slightly darken it for text contrast */
.page-cockfighting__hero-image {
  filter: brightness(0.7);
}