.page-cockfighting {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --page-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  color: var(--text-main);
  background-color: var(--page-bg);
  font-family: 'Arial', sans-serif;
}

.page-cockfighting__section-spacing {
  padding: 60px 0;
}

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__section-subtitle {
  font-size: 18px;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-cockfighting__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: justify;
}

.page-cockfighting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #000000; /* Ensure high contrast with gradient */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #000000; /* Ensure high contrast */
  transform: translateY(-2px);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  background: rgba(10, 10, 10, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  z-index: 10;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  border: 1px solid var(--border-color);
}

.page-cockfighting__hero-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* Why Choose Section */
.page-cockfighting__dark-section {
  background-color: var(--card-bg);
}

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

.page-cockfighting__feature-item {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--page-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

/* Bet Types Section */
.page-cockfighting__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-type-item {
  text-align: center;
}

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

.page-cockfighting__bet-type-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

/* Guide Section */
.page-cockfighting__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-cockfighting__guide-steps {
  flex: 2;
}

.page-cockfighting__ordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 60px;
}

.page-cockfighting__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--primary-color);
  color: #000000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.page-cockfighting__list-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__list-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

.page-cockfighting__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  counter-reset: step-counter;
}

.page-cockfighting__guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-cockfighting__promo-item {
  text-align: center;
}

.page-cockfighting__promo-title {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

.page-cockfighting__cta-buttons--center {
  text-align: center;
}

.page-cockfighting__cta-buttons--center .page-cockfighting__btn-primary {
  margin: 0 auto;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-cockfighting__faq-item {
  cursor: pointer;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--secondary-color);
}

.page-cockfighting__faq-answer {
  padding: 15px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: rgba(17, 17, 17, 0.8);
  border-top: 1px solid var(--border-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

/* CTA Section */
.page-cockfighting__cta-section {
  background-color: var(--card-bg);
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-cockfighting__cta-content {
  max-width: 800px;
}

.page-cockfighting__cta-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__cta-description {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

/* General image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

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

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

  .page-cockfighting__guide-content {
    flex-direction: column;
    align-items: center;
  }

  .page-cockfighting__guide-image-wrapper {
    margin-top: 30px;
    width: 80%;
  }

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

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

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

  .page-cockfighting__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  /* Hero Section Mobile */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
  }

  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    box-sizing: border-box !important;
    width: calc(100% - 30px); /* Adjust for padding */
  }

  .page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Features Grid Mobile */
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-item {
    padding: 25px 15px;
  }

  .page-cockfighting__feature-title {
    font-size: 20px;
  }

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

  /* Bet Types Grid Mobile */
  .page-cockfighting__bet-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__bet-type-title {
    font-size: 22px;
  }

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

  /* Guide Section Mobile */
  .page-cockfighting__guide-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__list-item {
    padding: 20px;
    padding-left: 50px;
    margin-bottom: 15px;
  }

  .page-cockfighting__list-item::before {
    left: 15px;
    top: 20px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .page-cockfighting__list-title {
    font-size: 18px;
  }

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

  .page-cockfighting__guide-image-wrapper {
    width: 100%;
    margin-top: 20px;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* Promotions Section Mobile */
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-cockfighting__promo-title {
    font-size: 22px;
  }

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

  /* FAQ Section Mobile */
  .page-cockfighting__faq-question {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
  }

  .page-cockfighting__faq-answer {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* CTA Section Mobile */
  .page-cockfighting__cta-section {
    padding: 60px 0;
  }

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

  .page-cockfighting__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* General Image and Container Mobile Adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section, 
  .page-cockfighting__card, 
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__guide-steps, .page-cockfighting__guide-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}