.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark body background */
  background-color: var(--background-color, #08160F); /* Ensure body background is respected */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--background-color, #08160F);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* Ensure content is above any potential background layers */
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* General Section Styling */
.page-cockfighting__introduction-section, 
.page-cockfighting__how-to-play-section, 
.page-cockfighting__betting-options-section, 
.page-cockfighting__guide-section, 
.page-cockfighting__strategies-section, 
.page-cockfighting__features-section, 
.page-cockfighting__commitment-section, 
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(var(--main-color-rgb, 17, 168, 78), 0.1);
  color: var(--main-color, #11A84E);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Grid Layouts */
.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__text-content {
  padding-right: 20px;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__image-wrapper--full-width {
  margin-top: 40px;
}

/* Cards */
.page-cockfighting__betting-cards-grid,
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push image to bottom if present */
}

.page-cockfighting__card-title,
.page-cockfighting__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__card-description,
.page-cockfighting__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.5;
}

.page-cockfighting__feature-image {
  margin-top: 20px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Lists */
.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list,
.page-cockfighting__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item,
.page-cockfighting__bullet-list .page-cockfighting__list-item,
.page-cockfighting__commitment-list .page-cockfighting__list-item {
  margin-bottom: 30px;
  padding-left: 40px;
  position: relative;
  color: inherit;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  font-size: 1.2rem;
}

.page-cockfighting__bullet-list .page-cockfighting__list-item::before,
.page-cockfighting__commitment-list .page-cockfighting__list-item::before {
  content: "\2022"; /* Bullet point */
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  font-size: 1.5rem;
  line-height: 1;
}

.page-cockfighting__list-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__commitment-list .page-cockfighting__list-item strong {
  color: var(--gold-color, #F2C14E);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: inherit;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

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

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

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

.page-cockfighting__faq-answer .page-cockfighting__btn-primary,
.page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__text-content {
    padding-right: 0;
  }

  .page-cockfighting__image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }

  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__betting-options-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__features-section,
  .page-cockfighting__commitment-section,
  .page-cockfighting__faq-section {
    padding: 60px 0;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
}

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

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    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-direction: column !important;
    gap: 10px !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 30px !important;
  }

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

  .page-cockfighting__card {
    padding: 25px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__feature-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__numbered-list .page-cockfighting__list-item,
  .page-cockfighting__bullet-list .page-cockfighting__list-item,
  .page-cockfighting__commitment-list .page-cockfighting__list-item {
    padding-left: 30px;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    padding-bottom: 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__betting-options-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__features-section,
  .page-cockfighting__commitment-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }
}