:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --bg-main: #140C0C;
  --bg-card: #2A1212;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-main); /* Page background */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__section-title {
  font-size: 3em;
  color: var(--gold-color);
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* Responsive H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--bg-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

/* General image styling */
.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

/* Grid for types and strategies */
.page-cockfighting__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-cockfighting__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--text-main);
}

/* Rules section specific */
.page-cockfighting__rule-highlight {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__rule-subtitle {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__rule-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-cockfighting__rule-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

/* Why Choose Section */
.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

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

.page-cockfighting__benefits-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__benefits-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__benefits-item p {
  color: var(--text-main);
  font-size: 1em;
}

/* Dark CTA Section */
.page-cockfighting__dark-section {
  background-color: var(--deep-red);
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-text {
  color: #ffffff;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--bg-main);
  padding-bottom: 80px;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(var(--primary-color), 0.1);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--bg-card), 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  text-align: left;
}

/* --- General responsive styles for all elements --- */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting__container {
    padding: 15px;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .page-cockfighting__section-text {
    font-size: 1em;
  }

  /* Banner __hero-section */
  .page-cockfighting__hero-section {
    min-height: 450px;
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-image {
    object-fit: cover; /* Changed from contain to cover for better mobile fill */
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 3em);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container rules */
  .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__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.5em;
  }

  .page-cockfighting__rule-highlight {
    padding: 20px;
  }

  .page-cockfighting__rule-subtitle {
    font-size: 1.3em;
  }

  .page-cockfighting__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__benefits-item {
    padding: 20px;
  }

  .page-cockfighting__benefits-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

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

  /* Placeholder for __category-lobby (five entries) - even if not in HTML, CSS rule is required */
  .page-cockfighting__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-cockfighting__category-card-link img {
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Placeholder for __blog-slider (blog slider) - even if not in HTML, CSS rule is required */
  .page-cockfighting__blog-slider-track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-cockfighting__post-item {
    flex: 0 0 90%; /* Show one card at a time with some peek of next */
    scroll-snap-align: start;
    margin-right: 16px;
  }
  .page-cockfighting__blog-slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .page-cockfighting__blog-slider-prev, .page-cockfighting__blog-slider-next {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
  }
}