:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background-color);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--deep-green-color);
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-cockfighting__subtitle {
  font-size: 1.15em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--deep-green-color);
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 2px 10px rgba(34, 199, 104, 0.3);
}

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

/* Section Titles and Content */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow-color);
  border-radius: 2px;
}

.page-cockfighting__text-content {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-content a.page-cockfighting__text-link {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__text-content a.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

.page-cockfighting__introduction-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-cockfighting__dark-section {
  background-color: var(--deep-green-color);
  padding: 80px 0;
}

/* History and Culture Section */
.page-cockfighting__history-culture-section .page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__history-culture-section .page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__history-culture-section .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure min size */
}

/* Betting Types Section */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-cockfighting__bet-title {
  color: var(--glow-color);
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__bet-description {
  color: var(--text-secondary);
  font-size: 1em;
}

/* Guide Section */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__guide-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-step-title {
  color: var(--gold-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-step-description {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
}

/* Strategy Section */
.page-cockfighting__strategy-section .page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse; /* Image on left, text on right for this section */
}

.page-cockfighting__strategy-section .page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__strategy-section .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure min size */
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-cockfighting__strategy-list li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-cockfighting__strategy-list li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-cockfighting__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-cockfighting__card-title {
  color: var(--gold-color);
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 25px;
}

/* Features Section */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-cockfighting__feature-title {
  color: var(--glow-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  color: var(--text-secondary);
  font-size: 1em;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
  background-color: var(--deep-green-color);
}

.page-cockfighting__faq-question:hover {
  background-color: var(--primary-color);
}

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

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  content: '−';
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  font-size: 1em;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__text-content {
  text-align: center;
}

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

/* Images responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__subtitle {
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-section {
    padding: 30px 0;
    padding-top: 10px !important;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__dark-section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Image responsiveness for content areas */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__image-wrapper,
  .page-cockfighting__feature-item .page-cockfighting__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .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;
  }

  /* Content grid adjustments */
  .page-cockfighting__history-culture-section .page-cockfighting__content-grid,
  .page-cockfighting__strategy-section .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__bet-list,
  .page-cockfighting__guide-list,
  .page-cockfighting__promotion-cards,
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure content sections have padding on mobile */
  .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;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__cta-buttons {
    gap: 10px;
  }
  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    padding: 12px 20px;
  }
  .page-cockfighting__text-content {
    font-size: 0.95em;
  }
}