/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --button-hover-dark: #1e87b6; /* Slightly darker primary for hover */
  --button-hover-light: #e0e0e0; /* Slightly darker secondary for hover */
}

/* Ensure the main content area has the correct top padding to avoid being covered by the fixed header */
.page-cockfighting {
  padding-top: var(--header-offset, 120px); /* Default for desktop, adjust for mobile if needed */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Default background color for the page body */
}

/* Override default padding-top if shared.css already applies it to body */
body.has-header-offset .page-cockfighting {
    padding-top: 0;
}


/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Example gradient */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Ensure image is behind text if text is overlayed */
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent background for text readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-title {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting__cta-button:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General 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.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-cockfighting__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.page-cockfighting__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-cockfighting__text-block a:hover {
    color: var(--button-hover-dark);
}

.page-cockfighting__list,
.page-cockfighting__numbered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-cockfighting__numbered-list {
  list-style-type: decimal;
}

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

.page-cockfighting__image-content {
  margin: 30px 0;
  text-align: center;
}

.page-cockfighting__image-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Background Colors --- */
.page-cockfighting__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-cockfighting__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__subsection-title {
  color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__list-item {
  color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block a {
    color: var(--secondary-color); /* White text on dark background for links */
}

.page-cockfighting__dark-bg .page-cockfighting__text-block a:hover {
    color: var(--button-hover-light);
}


/* --- Card Grid --- */
.page-cockfighting__card-grid,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting__card,
.page-cockfighting__promo-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-cockfighting__card img,
.page-cockfighting__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card-title,
.page-cockfighting__promo-card .page-cockfighting__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promo-card.page-cockfighting__dark-bg {
    background: var(--primary-color); /* Dark background for promo cards */
    color: var(--text-light);
}

.page-cockfighting__promo-card.page-cockfighting__dark-bg .page-cockfighting__card-title {
    color: var(--text-light);
}

.page-cockfighting__promo-card.page-cockfighting__dark-bg .page-cockfighting__card-text {
    color: var(--text-light);
}

.page-cockfighting__promo-card.page-cockfighting__dark-bg .page-cockfighting__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting__promo-card.page-cockfighting__dark-bg .page-cockfighting__btn-secondary:hover {
    background: var(--button-hover-light);
    border-color: var(--button-hover-light);
}

/* --- Buttons --- */
.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  text-align: center;
}

.page-cockfighting__btn-primary:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  margin-top: 20px;
  text-align: center;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--button-hover-light);
  color: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}


/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    padding-bottom: 60px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark); /* Ensure text color for FAQ answer */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--background-light); /* Light background for answer */
  border-radius: 0 0 5px 5px;
}