/* style/cockfighting.css */

/* Custom Color Variables - Derived from prompt, for easy use in this file */
:root {
  --cockfighting-primary-color: #11A84E;
  --cockfighting-secondary-color: #22C768;
  --cockfighting-background-color: #08160F; /* From custom palette "背景" */
  --cockfighting-card-bg: #11271B; /* From custom palette "Card B G" */
  --cockfighting-text-main: #F2FFF6; /* From custom palette "Text Main" */
  --cockfighting-text-secondary: #A7D9B8; /* From custom palette "Text Secondary" */
  --cockfighting-border-color: #2E7A4E; /* From custom palette "边框" */
  --cockfighting-glow-color: #57E38D; /* From custom palette "Glow" */
  --cockfighting-gold-color: #F2C14E; /* From custom palette "Gold" */
  --cockfighting-divider-color: #1E3A2A; /* From custom palette "Divider" */
  --cockfighting-deep-green: #0A4B2C; /* From custom palette "Deep Green" */
  --cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* From custom palette "按钮" */
}

.page-cockfighting {
  background-color: var(--cockfighting-background-color);
  color: var(--cockfighting-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-cockfighting__section.page-cockfighting__dark-bg {
  background-color: var(--cockfighting-card-bg); /* Use Card BG for dark sections */
  color: var(--cockfighting-text-main);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for content */
}

.page-cockfighting__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H2 */
  font-weight: 700;
  color: var(--cockfighting-gold-color); /* Use gold for main titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.5em, 3vw, 2em); /* Use clamp for H3 */
  font-weight: 600;
  color: var(--cockfighting-primary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  color: var(--cockfighting-text-secondary);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--cockfighting-deep-green); /* A dark green for the hero background */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is large */
}

.page-cockfighting__hero-content {
  position: relative; /* Not absolute, to ensure "上图下文" */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size control */
  font-weight: 800;
  color: var(--cockfighting-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-cockfighting__btn-primary {
  background: var(--cockfighting-btn-gradient);
  color: var(--cockfighting-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--cockfighting-glow-color);
  border: 2px solid var(--cockfighting-glow-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--cockfighting-glow-color);
  color: var(--cockfighting-background-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-cockfighting__btn-text {
  background-color: transparent;
  color: var(--cockfighting-glow-color);
  border: none;
  padding: 10px 0;
  font-size: 1em;
  text-align: center;
  display: block;
  margin-top: 15px;
}

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

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

.page-cockfighting__card {
  background-color: var(--cockfighting-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it respects max-width */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--cockfighting-gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__card-text {
  color: var(--cockfighting-text-secondary);
  font-size: 0.95em;
  flex-grow: 1; /* Allow text to grow */
}

/* Video Section */
.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__video-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Desktop width */
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin: 0 auto; /* Center the video container */
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 1; /* Ensure link is clickable over video */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image Text Block (for strategy section) */
.page-cockfighting__image-text-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image has enough space */
}}"