.page-cockfighting {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page content */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
}

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space for content below image */
  background-color: var(--background, #08160F);
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main, #F2FFF6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
}

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

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
  margin-top: 20px;
}

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2);
  transform: translateY(-2px);
}

.page-cockfighting__section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--deep-green, #0A4B2C);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-cockfighting__about-cockfighting p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-cockfighting__type-card,
.page-cockfighting__strategy-card,
.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__type-card:hover,
.page-cockfighting__strategy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow, #57E38D);
}

.page-cockfighting__type-image,
.page-cockfighting__strategy-image,
.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

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

.page-cockfighting__type-card p,
.page-cockfighting__strategy-card p {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  counter-reset: step-counter;
}

.page-cockfighting__step-list li {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  position: relative;
  padding-left: 35px;
}

.page-cockfighting__step-title::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--deep-green, #0A4B2C);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-cockfighting__step-list p {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
}

.page-cockfighting__advantage-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-cockfighting__advantage-list li {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__advantage-list p {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--text-main, #F2FFF6);
}

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

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

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

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for hero on mobile */
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    position: static;
    transform: none;
    padding: 20px 0;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__about-cockfighting p {
    font-size: 1rem;
  }

  .page-cockfighting__types-grid,
  .page-cockfighting__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__type-card,
  .page-cockfighting__strategy-card,
  .page-cockfighting__card,
  .page-cockfighting__step-list li,
  .page-cockfighting__advantage-list li,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__step-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__advantage-title {
    font-size: 1.1rem;
  }

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

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Force responsive for all images on mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/buttons/videos are responsive */
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__type-card,
  .page-cockfighting__strategy-card,
  .page-cockfighting__card,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__step-list,
  .page-cockfighting__advantage-list,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific button group handling for flex-wrap */
  .page-cockfighting__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }
}