:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-background: #08160F;
  --color-card-bg: #11271B;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-light-bg: #ffffff; /* For sections on light background */
  --color-dark-text: #333333; /* For text on light background */
}

.page-cockfighting {
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background);
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  background-color: var(--color-background);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  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); /* Subtle darkening for text readability */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above image wrapper if needed, but not overlaying */
  z-index: 2;
  margin-top: -150px; /* Pull content up slightly over the bottom of the image for visual flow */
  padding: 0 20px;
  max-width: 900px;
}

.page-cockfighting__main-title {
  color: var(--color-gold);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-main);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-background);
}

.page-cockfighting__btn-small {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 6px;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-small:hover {
  opacity: 0.9;
}

.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: var(--color-light-bg);
  color: var(--color-dark-text);
}

.page-cockfighting__introduction-section p {
  color: var(--color-dark-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-cockfighting__intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__intro-text {
  flex: 1;
}

.page-cockfighting__intro-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__intro-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-cockfighting__card-title {
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: var(--color-light-bg);
  color: var(--color-dark-text);
}

.page-cockfighting__how-to-play-section h2,
.page-cockfighting__how-to-play-section h3 {
  color: var(--color-dark-text);
}

.page-cockfighting__how-to-play-section p {
  color: var(--color-dark-text);
}

.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-cockfighting__step-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-cockfighting__step-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-cockfighting__image-with-description {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting__gameplay-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__image-caption {
  color: var(--color-dark-text);
  font-style: italic;
  margin-top: 15px;
  font-size: 15px;
}

.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

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

.page-cockfighting__type-card {
  background-color: var(--color-card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

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

.page-cockfighting__type-card .page-cockfighting__card-title {
  color: var(--color-gold);
}

.page-cockfighting__type-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--color-light-bg);
  color: var(--color-dark-text);
}

.page-cockfighting__tips-section h2 {
  color: var(--color-dark-text);
}

.page-cockfighting__tips-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding-left: 0;
}

.page-cockfighting__tips-list li {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: var(--color-dark-text);
  line-height: 1.6;
  position: relative;
  padding-left: 40px;
}

.page-cockfighting__tips-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 20px;
}

.page-cockfighting__cta-banner-section {
  padding: 80px 0;
  background-color: var(--color-primary);
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__cta-banner-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__cta-banner-section p {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Responsive Design --- */

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
  }

  .page-cockfighting__main-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-cockfighting__btn-secondary {
    margin-left: 0 !important;
  }

  .page-cockfighting__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__intro-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__intro-image-wrapper {
    min-width: unset;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__type-image {
    height: auto; /* Allow height to adjust on mobile */
  }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 0 30px;
  }

  .page-cockfighting__hero-content {
    margin-top: -100px;
  }

  .page-cockfighting__main-title {
    font-size: 48px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 24px;
  }
}