/* style/cockfighting.css */
.page-cockfighting {
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Assuming --dark-bg is a dark color from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-cockfighting p, .page-cockfighting li {
  color: #f0f0f0; /* Slightly lighter for readability on dark background */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-cockfighting__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__text-center {
  text-align: center;
}

/* Hero Banner Section */
.page-cockfighting__hero-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A1931, #2a4a7a); /* Dark blue gradient */
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for hero title */
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: left;
}

.page-cockfighting__hero-cta {
  display: flex;
  gap: 20px;
}

.page-cockfighting__hero-image {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0A1931; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
  transform: translateY(-2px);
}

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

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

/* Features Section */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: #0A1931;
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
  margin-bottom: 20px;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 50%;
  background-color: #FFD700; /* Gold icon background */
  color: #0A1931;
  font-size: 40px;
}

.page-cockfighting__feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.page-cockfighting__feature-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-cockfighting__feature-card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: #0d1e3a;
}

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

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #0A1931;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 15px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  padding: 80px 0;
  background-color: #0A1931;
}

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

.page-cockfighting__type-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.page-cockfighting__type-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  padding: 20px 15px 10px;
}

.page-cockfighting__type-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: #0d1e3a;
}

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

.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  padding: 20px 15px 10px;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-cockfighting__promo-link {
  display: block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  padding: 0 15px 20px;
  text-align: right;
}

.page-cockfighting__promo-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #0A1931;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  color: #FFD700;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  color: #f0f0f0;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Call to Action Final Section */
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  background-color: #0d1e3a;
}

/* Global Image & Button Responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting a[class*="btn"],
.page-cockfighting a[class*="button"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-buttons,
.page-cockfighting__hero-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__hero-banner {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-cockfighting__hero-cta {
    justify-content: center;
  }

  .page-cockfighting__hero-image {
    max-width: 80%;
    margin-top: 40px;
  }

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

  .page-cockfighting__feature-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: var(--header-offset, 80px) !important; /* Adjust for mobile header offset */
  }

  .page-cockfighting__hero-banner {
    padding: 60px 15px;
    gap: 30px;
  }

  .page-cockfighting__hero-title {
    font-size: 36px;
  }

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

  .page-cockfighting__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

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

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

  .page-cockfighting__description {
    font-size: 16px;
  }

  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 50px 0;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__type-title,
  .page-cockfighting__promo-title {
    font-size: 20px;
  }

  .page-cockfighting__feature-card-description,
  .page-cockfighting__step-description,
  .page-cockfighting__type-description,
  .page-cockfighting__promo-description {
    font-size: 15px;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }

  /* Force images to be responsive on mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers must also be responsive */
  .page-cockfighting__hero-banner,
  .page-cockfighting__features-section .page-cockfighting__container,
  .page-cockfighting__how-to-play-section .page-cockfighting__container,
  .page-cockfighting__game-types-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__cta-final-section .page-cockfighting__container,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__type-card,
  .page-cockfighting__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific exception for feature icons - they are small and should not be 100% width */
  .page-cockfighting__feature-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    font-size: 32px;
  }
  .page-cockfighting__feature-icon img {
    width: 100% !important;
    height: 100% !important;
    padding: 5px !important;
  }
}