/* style/cockfighting.css */
/* Base styles for the page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Using custom property for main text color */
  background-color: var(--page-background); /* Using custom property for page background */
}

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

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

/* Section styling */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__promotions-section,
.page-cockfighting__tips-section,
.page-cockfighting__responsible-gaming-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure no overflow from images */
  background-color: var(--page-background); /* Ensure background is dark for contrast */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* White text on dark green gradient */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Green text on transparent/dark background */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Section backgrounds */
.page-cockfighting__dark-bg {
  background-color: var(--page-background);
  color: var(--text-main);
}

.page-cockfighting__light-bg {
  background-color: var(--card-background); /* Using card background for light sections to maintain dark theme */
  color: var(--text-main);
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Grid for layout with image and text */
.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__content-grid .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
}

.page-cockfighting__content-grid .page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__content-grid .page-cockfighting__text-content {
  flex: 1;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-position: inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-cockfighting__ordered-list li strong {
  color: var(--text-main);
}

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

.page-cockfighting__card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%; /* Make icons round */
  object-fit: cover;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-cockfighting__promotion-card {
  text-align: left;
  padding: 25px;
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-card .page-cockfighting__card-description {
  margin-bottom: 20px;
}

.page-cockfighting__cta-center {
  margin-top: 50px;
  text-align: center;
}

/* Responsible gaming section */
.page-cockfighting__responsible-gaming-section .page-cockfighting__text-block {
  max-width: 800px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color); /* Slightly different background for question */
  border-bottom: 1px solid transparent; /* default */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-color: var(--border-color); /* Separator when open */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color); /* Use glow color for toggle */
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

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

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Custom details styling for cross-browser compatibility */
.page-cockfighting__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for Webkit browsers */
}

/* Final CTA section */
.page-cockfighting__cta-final-section {
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-cockfighting__content-grid--reverse {
    flex-direction: column; /* Keep column for reverse on tablet too */
  }
  .page-cockfighting__content-grid .page-cockfighting__text-content,
  .page-cockfighting__content-grid .page-cockfighting__image-wrapper {
    width: 100%;
    flex: none;
  }
  .page-cockfighting__ordered-list,
  .page-cockfighting__unordered-list {
    text-align: left; /* Keep lists left-aligned */
  }
}

@media (max-width: 768px) {
  /* General mobile padding */
  .page-cockfighting__container {
    padding: 0 15px;
  }

  /* Sections */
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__responsible-gaming-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles header offset, this is for small decor */
  }

  /* Titles */
  .page-cockfighting__main-title {
    font-size: 2rem;
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }

  /* Buttons */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__promotion-card,
  .page-cockfighting__feature-card,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-cockfighting__promotion-image {
    height: 150px; /* Adjust height for mobile */
  }

  /* FAQ */
  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}