/* style/cockfighting.css */
/*
  Colors:
  Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
  Card BG: #11271B
  Background: #08160F (This will be body background from shared.css, so main content text should be light)
  Text Main: #F2FFF6
  Text Secondary: #A7D9B8
  Border: #2E7A4E
  Glow: #57E38D
  Gold: #F2C14E
  Divider: #1E3A2A
  Deep Green: #0A4B2C
*/

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: transparent; /* Body will handle the main background color */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green, #0A4B2C); /* A darker green for hero section background */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color */
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C); /* Darker text on hover for contrast */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
}

.page-cockfighting__dark-section {
  background-color: var(--card-bg, #11271B); /* Darker background for contrast sections */
  padding: 80px 0;
}

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

/* Bet Types Grid */
.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6); /* Ensure light text on dark card */
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

/* Guide List */
.page-cockfighting__guide-list,
.page-cockfighting__benefits-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__list-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__list-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__list-item a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-cockfighting__list-item a:hover {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Slightly different background for question */
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--border, #2E7A4E);
}

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

.page-cockfighting__faq-answer a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-cockfighting__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__dark-section {
    padding: 60px 0;
  }
}

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

  .page-cockfighting__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all images are responsive and don't cause overflow */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size on mobile too */
    min-height: 200px !important; /* Enforce minimum size on mobile too */
  }

  /* All containers with images/videos/buttons should be constrained */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__guide-list,
  .page-cockfighting__benefits-list,
  .page-cockfighting__tips-list {
    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__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__list-title {
    font-size: 1.1em;
  }

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

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-cockfighting__hero-section {
    padding: 20px 10px;
    padding-top: 10px !important;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__dark-section {
    padding: 40px 0;
  }
}

/* Color Contrast Enforcement */
/* Assuming body background is dark (#08160F) */
.page-cockfighting {
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting p,
.page-cockfighting li {
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

.page-cockfighting__dark-section {
  background-color: var(--card-bg, #11271B); /* Using card-bg for dark sections */
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on dark green button */
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D); /* Glow text on transparent/dark background */
  border: 2px solid var(--glow, #57E38D);
}
.page-cockfighting__btn-secondary:hover {
  color: var(--deep-green, #0A4B2C); /* Darker text on hover for contrast */
}

.page-cockfighting__list-item {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__list-item p {
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-question {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--gold, #F2C14E);
}

.page-cockfighting__faq-answer {
  color: var(--text-secondary, #A7D9B8);
}