:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #121212;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

/* Base styles for the page content, ensuring contrast with body background */
.page-cockfighting {
  color: var(--text-color-dark-bg); /* Text on dark body background */
  background-color: var(--background-dark); /* Ensure sections have explicit background if needed */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure the first section has enough padding-top to clear the fixed header */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px; /* Desktop padding-top to clear fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #330000 100%);
  color: var(--text-color-dark-bg);
}

.page-cockfighting__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

.page-cockfighting__section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-cockfighting__section--dark-bg {
  background-color: #1a1a1a;
}

.page-cockfighting__section--highlight {
  background-color: #222222;
  border-top: 5px solid var(--primary-color);
  border-bottom: 5px solid var(--primary-color);
}

.page-cockfighting__section--conclusion {
  padding: 80px 20px;
  text-align: center;
}

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

.page-cockfighting__container--center {
  text-align: center;
}

.page-cockfighting__title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-cockfighting__text {
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
}

.page-cockfighting__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
  color: #fff;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-light-bg);
}

.page-cockfighting__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__cta-button--secondary:hover {
  background: #a30000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-cockfighting__card {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  flex-grow: 1;
}

.page-cockfighting__content-block {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.page-cockfighting__content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 250px; /* Ensure minimum size */
}

.page-cockfighting__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Numbered List for Guide */
.page-cockfighting__numbered-list {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding-left: 90px; /* Space for counter */
}

.page-cockfighting__list-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 30px;
  top: 30px;
  background: var(--primary-color);
  color: var(--text-color-light-bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__list-item .page-cockfighting__subtitle {
  margin-top: 0;
  color: var(--primary-color);
}

/* Offer Cards */
.page-cockfighting__offer-card {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-cockfighting__offer-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__offer-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__offer-description {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-cockfighting__offer-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--primary-color);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__offer-button:hover {
  background: var(--primary-color);
  color: var(--text-color-light-bg);
  transform: translateY(-2px);
}

/* Game List */
.page-cockfighting__game-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.page-cockfighting__game-item {
  text-align: center;
}

.page-cockfighting__game-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-dark-bg);
  padding: 15px 10px;
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__game-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__game-icon {
  max-width: 120px; /* Larger icon size */
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
  min-height: 120px; /* Ensure minimum size */
}

.page-cockfighting__game-name {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
}

/* Simple FAQ Section (not collapsible for this page) */
.page-cockfighting__section--faq-simple {
  background-color: #1a1a1a;
}

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

.page-cockfighting__faq-item-simple {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question-simple {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-cockfighting__faq-answer-simple {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting__title {
    font-size: 2.2em;
  }

  .page-cockfighting__subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* Mobile specific padding-top for the first section */
  .page-cockfighting__hero-section {
    padding-top: 100px !important; /* Mobile padding-top to clear fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-cockfighting__container {
    padding: 0;
  }

  .page-cockfighting__title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__subtitle {
    font-size: 1.4em;
  }

  .page-cockfighting__text,
  .page-cockfighting__card-text,
  .page-cockfighting__offer-description,
  .page-cockfighting__faq-answer-simple {
    font-size: 0.95em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__grid--2-cols {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card,
  .page-cockfighting__content-block,
  .page-cockfighting__offer-card,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-item-simple {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__image,
  .page-cockfighting__offer-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 150px; /* Adjust min height for mobile */
  }

  .page-cockfighting__game-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }

  .page-cockfighting__game-icon {
    max-width: 80px;
    min-height: 80px;
  }

  .page-cockfighting__game-name {
    font-size: 0.9em;
  }

  .page-cockfighting__list-item {
    padding-left: 70px;
  }

  .page-cockfighting__list-item::before {
    left: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }

  .page-cockfighting__faq-question-simple {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }

  .page-cockfighting__title {
    font-size: 1.6em;
  }

  .page-cockfighting__game-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .page-cockfighting__game-icon {
    max-width: 70px;
    min-height: 70px;
  }
  .page-cockfighting__game-name {
    font-size: 0.8em;
  }
}