.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light grey if var not set */
}

.page-cockfighting__text-main {
  color: #FFF5E1;
}

.page-cockfighting__dark-bg {
  background-color: #B71C1C;
  color: #FFF5E1; /* Light text for dark background */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #C91F17;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #FFF5E1;
}

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

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

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFF5E1;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF5E1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

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

.page-cockfighting__btn-secondary {
  background: #B71C1C;
  color: #FFF5E1;
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  background: #7A0E0E;
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.6);
}

/* Article Body and Text Blocks */
.page-cockfighting__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.7;
  padding: 0 20px;
  color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__article-body {
  color: #FFF5E1;
}

.page-cockfighting__article-body p {
  margin-bottom: 1em;
}

.page-cockfighting__article-figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Grid Layout for Cards */
.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px;
}

.page-cockfighting__card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

.page-cockfighting__card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFF5E1;
  line-height: 1.3;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF5E1;
}

/* List Styles */
.page-cockfighting__list {
  list-style-type: disc;
  margin: 20px 0 20px 40px;
  text-align: left;
  color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__list {
  color: #FFF5E1;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-cockfighting__list strong {
  color: #C91F17;
}

.page-cockfighting__dark-bg .page-cockfighting__list strong {
  color: #FFD86A;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544;
  overflow: hidden;
  background: #B71C1C; /* Background color for FAQ item */
  color: #FFF5E1; /* Text Main */
}
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;
  font-weight: 600;
  color: #FFF5E1;
}
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: #7A0E0E; /* Deep Red hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 10px 10px;
  text-align: left;
  color: #FFF5E1;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
  margin: 0;
  color: #FFF5E1;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  position: relative;
  overflow: hidden;
}

.page-cockfighting__cta-section .page-cockfighting__container {
  position: relative;
  z-index: 1;
}

.page-cockfighting__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.page-cockfighting__cta-content .page-cockfighting__section-title {
  color: #FFF5E1;
  margin-bottom: 0;
}

.page-cockfighting__cta-content .page-cockfighting__description {
  font-size: 1.25em;
  max-width: 800px;
}

.page-cockfighting__cta-content .page-cockfighting__cta-buttons {
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 30px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
  .page-cockfighting__description {
    font-size: 1.1em;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
  }
  .page-cockfighting__article-body {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-cockfighting__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 25px;
  }
  .page-cockfighting__card-title {
    font-size: 1.4em;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1.1em;
  }
  .page-cockfighting__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: 450px;
  }
  .page-cockfighting__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }
  .page-cockfighting__hero-content {
    padding: 20px 10px;
    margin-top: 10px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-cockfighting__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections & Titles */
  .page-cockfighting__section {
    padding: 30px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  .page-cockfighting__container {
    padding: 10px 15px;
  }
  .page-cockfighting__article-body {
    font-size: 0.95em;
    padding: 0 10px;
  }
  .page-cockfighting__article-figure {
    margin: 20px auto;
  }
  .page-cockfighting__article-body p {
    margin-bottom: 0.8em;
  }

  /* Grid Layout (Products/Tips) */
  .page-cockfighting__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    overflow-x: hidden;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
  }
  .page-cockfighting__card-text {
    font-size: 0.95em;
  }

  /* Lists */
  .page-cockfighting__list {
    margin: 15px 0 15px 25px;
    font-size: 0.95em;
  }
  .page-cockfighting__list li {
    margin-bottom: 8px;
  }

  /* FAQ Section */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }

  /* CTA Section */
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting__cta-content .page-cockfighting__description {
    font-size: 1.05em;
  }

  /* Global Image & Container Mobile Fixes */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__intro-section .page-cockfighting__container,
  .page-cockfighting__rules-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__intro-section .page-cockfighting__article-body,
  .page-cockfighting__rules-section .page-cockfighting__article-body,
  .page-cockfighting__promotions-section .page-cockfighting__article-body {
    padding-left: 15px;
    padding-right: 15px;
  }
}