/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color: #EA7C07;
  --text-dark-bg: #FFFFFF;
  --text-light-bg: #333333;
  --bg-dark: #121212; /* From body background in shared.css */
  --bg-light: #FFFFFF;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark-bg); /* Default text color for dark body background */
  background-color: var(--bg-dark);
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-dark-bg);
}

.page-cockfighting__highlight {
  color: var(--primary-color);
  font-weight: 600;
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

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

.page-cockfighting__hero-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: 2px solid var(--accent-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--accent-color), 10%);
  border-color: darken(var(--accent-color), 10%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: var(--bg-dark);
  color: var(--text-dark-bg);
}

.page-cockfighting__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  background-color: var(--bg-light);
  color: var(--text-light-bg);
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__how-to-play-section .page-cockfighting__text-block {
  color: var(--text-light-bg);
}

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

.page-cockfighting__step-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light-bg);
}

.page-cockfighting__step-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__step-item a:hover {
  color: darken(var(--primary-color), 10%);
}

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  background-color: var(--bg-dark);
  color: var(--text-dark-bg);
}

.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: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-cockfighting__feature-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark-bg);
  flex-grow: 1;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  background-color: var(--primary-color);
  color: var(--text-dark-bg);
}

.page-cockfighting__bet-types-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__bet-types-section .page-cockfighting__text-block {
  color: var(--secondary-color);
}

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

.page-cockfighting__bet-type-card {
  background-color: var(--card-bg-dark-mode);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-cockfighting__bet-type-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__bet-type-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__bet-type-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark-bg);
  flex-grow: 1;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: var(--bg-light);
  color: var(--text-light-bg);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__promotions-section .page-cockfighting__text-block {
  color: var(--text-light-bg);
}

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

.page-cockfighting__promotion-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px; /* Ensure cards have similar height */
}

.page-cockfighting__promotion-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__promotion-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light-bg);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Safety Section */
.page-cockfighting__safety-section {
  background-color: var(--bg-dark);
  color: var(--text-dark-bg);
}

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

.page-cockfighting__safety-item {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__safety-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 100px;
  min-height: 100px;
}

.page-cockfighting__safety-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__safety-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark-bg);
}

.page-cockfighting__safety-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__safety-description a:hover {
  color: lighten(var(--primary-color), 10%);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--bg-light);
  color: var(--text-light-bg);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light-bg);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light-bg);
  background-color: #f9f9f9;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light-bg);
}

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

.page-cockfighting__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: darken(var(--primary-color), 10%);
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  background-color: var(--primary-color);
  color: var(--text-dark-bg);
  padding: 80px 0;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: var(--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-cockfighting__cta-final-section .page-cockfighting__cta-buttons {
  gap: 25px;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--secondary-color);
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image-wrapper {
    max-height: 500px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__safety-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

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

  .page-cockfighting__text-block {
    font-size: 16px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__cta-buttons a {
    width: 100%;
  }

  /* Mobile image responsiveness */
  .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,
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    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 already handles --header-offset */
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  /* Mobile video responsiveness */
  .page-cockfighting video,
  .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;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .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;
  }
  
  .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 {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-cockfighting__main-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-cockfighting__step-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__promotion-title,
  .page-cockfighting__safety-heading {
    font-size: 20px;
  }

  .page-cockfighting__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }
}