/* style/cockfighting.css */

/* Custom CSS variables for the color palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-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 background from shared.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
}

/* Section specific styling */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  background-color: var(--card-bg); /* Use a dark background for hero */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.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;
  text-align: center;
  min-width: 200px; /* Ensure buttons are not too small */
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--border-color);
  color: #ffffff;
}

.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-color); /* Consistent background */
  color: var(--text-main);
}

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

.page-cockfighting__section-title {
  color: var(--glow-color); /* Title color from palette */
  font-size: 2.2rem;
  font-weight: bold;
  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: 3px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg); /* Card BG for list items */
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__list-item strong {
  color: var(--gold-color);
}

.page-cockfighting__list-item a {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-cockfighting__list-item a:hover {
  color: #ffffff;
}

.page-cockfighting__list-item h3.page-cockfighting__list-title {
  color: var(--glow-color);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 10px;
}

/* FAQ section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: var(--glow-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary);
}

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

.page-cockfighting__faq-answer a {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: #ffffff;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--deep-green-color); /* Use Deep Green for a distinct final CTA */
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: var(--gold-color);
}

.page-cockfighting__cta-final-section .page-cockfighting__hero-description,
.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__security-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-content {
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width on mobile for better stacking */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Mobile image, video, button, and container responsive rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  /* Ensure general content containers have padding for mobile */
  .page-cockfighting__intro-section .page-cockfighting__container,
  .page-cockfighting__how-to-play-section .page-cockfighting__container,
  .page-cockfighting__bet-types-section .page-cockfighting__container,
  .page-cockfighting__tips-section .page-cockfighting__container,
  .page-cockfighting__security-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__cta-final-section .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
}