.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF1E8); /* Default text color for the page, from custom colors */
  background: var(--background-color, #140C0C); /* Default background color for the page, from custom colors */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not --header-offset */
  background-color: var(--background-color, #140C0C);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-cockfighting__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
}

.page-cockfighting__hero-content {
  padding: 40px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Ensure content is above any background effects */
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__main-title {
  font-size: 4em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold, #F3C54D); /* Use gold for main title */
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-main, #FFF1E8);
}

/* Buttons */
.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--deep-red, #7E0D0D);
  color: var(--text-main, #FFF1E8);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-color, #6A1E1E);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--main-color, #C61F1F);
}

.page-cockfighting__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Common Section Styles */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: var(--gold, #F3C54D);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* About Section */
.page-cockfighting__about-section {
  padding: 60px 0;
  background-color: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__dark-section {
  background-color: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-cockfighting__feature-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #6A1E1E);
}

.page-cockfighting__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Adjust max-width to ensure it's not too small */
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: var(--gold, #F3C54D);
  margin-bottom: 15px;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  padding: 60px 0;
  background-color: var(--background-color, #140C0C);
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-cockfighting__card {
  background-color: var(--card-bg, #2A1212);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color, #6A1E1E);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 220px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: var(--gold, #F3C54D);
  padding: 20px 20px 10px;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
  padding: 0 20px 20px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 0;
  background-color: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-cockfighting__guide-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #6A1E1E);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-step-title {
  font-size: 1.8em;
  color: var(--gold, #F3C54D);
  margin-bottom: 15px;
}

.page-cockfighting__guide-text {
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #140C0C);
  color: var(--text-main, #FFF1E8);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #6A1E1E);
  overflow: hidden;
  background: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold, #F3C54D);
}
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(--main-color-rgb, 198, 31, 31), 0.2); /* Use a slight hover effect */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F3C54D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--main-color-rgb, 198, 31, 31), 0.1); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main, #FFF1E8);
}
.page-cockfighting__faq-answer p {
  margin: 0;
}


/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 20px;
  background-color: var(--main-color, #C61F1F); /* Use main brand color for CTA */
  color: #ffffff;
  text-align: center;
  border-top: 5px solid var(--gold, #F3C54D);
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #ffffff;
  text-shadow: none;
}

.page-cockfighting__cta-section .page-cockfighting__description {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

/* General container rules for responsiveness */
.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__feature-item,
.page-cockfighting__guide-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 3.5em;
  }
  .page-cockfighting__section-title {
    font-size: 2.5em;
  }
  .page-cockfighting__feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-cockfighting__card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-cockfighting__guide-list {
    grid-template-columns: repeat(1, 1fr); /* Stack guide items */
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
  }
  .page-cockfighting__hero-content {
    padding: 30px 15px 40px;
  }
  .page-cockfighting__main-title {
    font-size: 2.5em !important; /* Smaller font size for mobile H1 */
    margin-bottom: 15px;
  }
  .page-cockfighting__description {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  /* Buttons */
  .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__btn-large {
    padding: 15px 25px !important;
    font-size: 1.1em !important;
  }
  .page-cockfighting__hero-content .page-cockfighting__btn-primary {
    width: auto !important; /* Allow button to shrink if text is short */
    max-width: 90% !important;
    margin: 0 auto;
  }

  /* General Images and Containers */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__feature-item,
  .page-cockfighting__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Titles */
  .page-cockfighting__section-title {
    font-size: 2em !important;
    margin-bottom: 30px;
  }

  /* About Section */
  .page-cockfighting__about-section {
    padding: 40px 0;
  }
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr !important; /* Single column for features */
    gap: 20px;
  }
  .page-cockfighting__feature-item {
    padding: 20px;
  }
  .page-cockfighting__feature-icon {
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
    max-width: 80% !important; /* Allow scaling down */
  }

  /* Game Types Section */
  .page-cockfighting__game-types-section {
    padding: 40px 0;
  }
  .page-cockfighting__card-grid {
    grid-template-columns: 1fr !important; /* Single column for cards */
    gap: 20px;
  }
  .page-cockfighting__card-image {
    height: auto !important; /* Allow height to adjust */
    max-height: 250px; /* Max height for mobile cards */
    min-width: 200px;
    min-height: 200px;
  }

  /* Guide Section */
  .page-cockfighting__guide-section {
    padding: 40px 0;
  }
  .page-cockfighting__guide-list {
    gap: 20px;
  }
  .page-cockfighting__guide-item {
    padding: 20px;
  }
  .page-cockfighting__guide-step-title {
    font-size: 1.5em;
  }

  /* FAQ Section */
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section */
  .page-cockfighting__cta-section {
    padding: 50px 15px;
  }
  .page-cockfighting__cta-section .page-cockfighting__description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
}