/* style/cockfighting-games.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-cockfighting-games {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Main background color */
  line-height: 1.6;
}

/* Custom CSS Variables based on provided color scheme */
:root {
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --primary-color: #11A84E; /* Main brand color */
  --secondary-color: #22C768; /* Auxiliary brand color */
}

/* Base styles for sections */
.page-cockfighting-games__hero-section,
.page-cockfighting-games__video-section,
.page-cockfighting-games__content-area,
.page-cockfighting-games__faq-section,
.page-cockfighting-games__cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting-games__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting-games__light-bg {
  background-color: var(--text-main, #F2FFF6); /* Light background for content area for better contrast with dark text */
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-cockfighting-games__hero-section {
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden; /* To contain any potential overflow from image */
}

.page-cockfighting-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.page-cockfighting-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-games__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-cockfighting-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
  font-weight: 700;
  color: var(--gold-color, #F2C14E); /* Using gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-games__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-cockfighting-games__btn-primary,
.page-cockfighting-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-cockfighting-games__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main, #F2FFF6); /* White text for dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-games__btn-secondary {
  background: transparent;
  color: var(--gold-color, #F2C14E); /* Gold text for secondary button */
  border: 2px solid var(--gold-color, #F2C14E);
}

.page-cockfighting-games__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

/* Video Section */
.page-cockfighting-games__video-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  position: relative;
}

.page-cockfighting-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for video */
  margin: 30px auto 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000; /* Fallback for video area */
}

.page-cockfighting-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer; /* Indicate it's clickable */
}

.page-cockfighting-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Invisible overlay for click */
  z-index: 2; /* Above video */
  cursor: pointer;
}

/* Content Area */
.page-cockfighting-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: left; /* Align text left within content area */
  background-color: var(--text-main, #F2FFF6); /* Light background for content area */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-games__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-games__section-header {
  margin-bottom: 40px;
}

.page-cockfighting-games__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color, #11A84E); /* Primary color for section titles */
  margin-bottom: 20px;
}

.page-cockfighting-games__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8); /* Text secondary for dark sections */
  max-width: 800px;
  margin: 0 auto;
}
.page-cockfighting-games__content-area .page-cockfighting-games__section-description {
    color: #555555; /* Darker text for light background */
}


.page-cockfighting-games__content-area h2,
.page-cockfighting-games__content-area h3 {
  color: var(--deep-green, #0A4B2C); /* Deep green for titles in light content */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting-games__content-area p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-cockfighting-games__content-area strong {
  color: var(--primary-color, #11A84E);
}

.page-cockfighting-games__content-area a {
  color: var(--primary-color, #11A84E);
  text-decoration: underline;
}

.page-cockfighting-games__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-cockfighting-games__numbered-list,
.page-cockfighting-games__bullet-list,
.page-cockfighting-games__benefit-list,
.page-cockfighting-games__tips-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.page-cockfighting-games__numbered-list li,
.page-cockfighting-games__bullet-list li,
.page-cockfighting-games__benefit-list li,
.page-cockfighting-games__tips-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* FAQ Section */
.page-cockfighting-games__faq-section {
  padding-bottom: 80px;
}

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

.page-cockfighting-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Darker green for question background */
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting-games__faq-item[open] .page-cockfighting-games__faq-question {
  background-color: var(--primary-color, #11A84E); /* Highlight open question */
}

.page-cockfighting-games__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting-games__faq-item[open] .page-cockfighting-games__faq-toggle {
  transform: rotate(45deg); /* Rotate + to become X or similar */
}

.page-cockfighting-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

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

/* CTA Section */
.page-cockfighting-games__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-cockfighting-games__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting-games__cta-content .page-cockfighting-games__section-title {
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting-games__cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
}

.page-cockfighting-games__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Global image styles to prevent small icons */
.page-cockfighting-games img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
  /* No filter property allowed */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-games__hero-content {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-games__hero-section,
  .page-cockfighting-games__video-section,
  .page-cockfighting-games__content-area,
  .page-cockfighting-games__faq-section,
  .page-cockfighting-games__cta-section {
    padding: 40px 15px; /* Adjust padding for mobile */
  }

  .page-cockfighting-games__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 size for mobile */
  }

  .page-cockfighting-games__hero-description,
  .page-cockfighting-games__cta-content p {
    font-size: 1rem;
  }

  .page-cockfighting-games__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-cockfighting-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-cockfighting-games__btn-primary,
  .page-cockfighting-games__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness */
  .page-cockfighting-games video,
  .page-cockfighting-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting-games__video-section,
  .page-cockfighting-games__video-container,
  .page-cockfighting-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Image responsiveness */
  .page-cockfighting-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size is still met */
    min-height: 200px !important;
  }
  
  .page-cockfighting-games__section,
  .page-cockfighting-games__card,
  .page-cockfighting-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-games__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-cockfighting-games__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-games__hero-section,
  .page-cockfighting-games__video-section,
  .page-cockfighting-games__content-area,
  .page-cockfighting-games__faq-section,
  .page-cockfighting-games__cta-section {
    padding: 30px 10px;
  }

  .page-cockfighting-games__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .page-cockfighting-games__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}

/* Ensure images and videos are not filtered */
.page-cockfighting-games img,
.page-cockfighting-games video {
  filter: none !important;
}