/* style/cockfighting.css */

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

/* Base Styles - body background is dark, so default text is light */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--bj39-text-main);
  background-color: var(--bj39-background);
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--bj39-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: var(--bj39-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  color: var(--bj39-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__card {
  background-color: var(--bj39-card-bg);
  border: 1px solid var(--bj39-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--bj39-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
  background: var(--bj39-button-gradient);
  color: var(--bj39-text-main);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--bj39-secondary-color);
  border-color: var(--bj39-secondary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--bj39-secondary-color);
  color: var(--bj39-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 199, 104, 0.4);
}

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

/* Image Base Styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px;
  background-color: var(--bj39-background);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

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

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--bj39-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__description {
  font-size: 1.2rem;
  color: var(--bj39-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Why BJ39 Section */
.page-cockfighting__dark-section {
  background-color: var(--bj39-deep-green);
  padding: 80px 0;
  color: var(--bj39-text-main);
}

.page-cockfighting__light-bg {
  background-color: var(--bj39-background);
  padding: 80px 0;
  color: var(--bj39-text-main);
}

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

.page-cockfighting__feature-item .page-cockfighting__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title,
.page-cockfighting__step-title,
.page-cockfighting__promo-title,
.page-cockfighting__security-title {
  font-size: 1.5rem;
  color: var(--bj39-text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__feature-text,
.page-cockfighting__type-text,
.page-cockfighting__step-text,
.page-cockfighting__promo-text,
.page-cockfighting__security-text {
  font-size: 1rem;
  color: var(--bj39-text-secondary);
  flex-grow: 1;
}

/* Types of Cockfighting Section */
.page-cockfighting__type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* How to Play Section */
.page-cockfighting__step-item {
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-cockfighting__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bj39-gold);
  color: var(--bj39-background);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__step-btn {
  margin-top: 20px;
}

/* Rules & Strategy Section */
.page-cockfighting__content-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-cockfighting__text-block {
  flex: 2;
  text-align: left;
}

.page-cockfighting__image-block {
  flex: 1;
}

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

.page-cockfighting__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--bj39-text-secondary);
  font-size: 1rem;
}

.page-cockfighting__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--bj39-secondary-color);
  font-weight: bold;
}

.page-cockfighting__list strong {
  color: var(--bj39-text-main);
}

/* Promotions Section */
.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-cockfighting__promo-btn {
  margin-top: 20px;
}

/* Security Section */
.page-cockfighting__security-item {
  text-align: left;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--bj39-card-bg);
  border: 1px solid var(--bj39-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--bj39-text-main);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bj39-deep-green);
  border-radius: 12px;
  color: var(--bj39-text-main);
}

.page-cockfighting__faq-question:hover {
  background-color: var(--bj39-primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bj39-gold);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--bj39-text-secondary);
  line-height: 1.5;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

/* Final CTA Section */
.page-cockfighting__final-cta {
  background-color: var(--bj39-background);
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__content-flex {
    flex-direction: column;
    align-items: center;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    flex: none;
    width: 100%;
  }

  .page-cockfighting__content-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section,
  .page-cockfighting__dark-section,
  .page-cockfighting__light-bg,
  .page-cockfighting__final-cta {
    padding: 40px 0;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__main-title {
    font-size: 2.2rem;
  }

  .page-cockfighting__description {
    font-size: 1rem;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-cockfighting__faq-list {
    padding: 0 15px;
  }

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

  /* Mobile image/video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting video,
  .page-cockfighting__video {
    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__why-bj39,
  .page-cockfighting__types-of-cockfighting,
  .page-cockfighting__how-to-play,
  .page-cockfighting__rules-strategy,
  .page-cockfighting__promotions,
  .page-cockfighting__security,
  .page-cockfighting__faq,
  .page-cockfighting__final-cta,
  .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;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8rem;
  }

  .page-cockfighting__section-title {
    font-size: 1.7rem;
  }

  .page-cockfighting__description {
    font-size: 0.95rem;
  }
}