/* style/cockfighting.css */
/* Base styles for the page, ensuring text color adapts to body background (from shared.css) */
/* Custom colors: #2F6BFF, #6FA3FF, #FFFFFF, #F4F7FB, #1F2D3D, #000000, #D6E2FF, #A5C4FF */
/* Button gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) */

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #1F2D3D); /* Default dark text on light background */
  background-color: var(--bg-color, #F4F7FB); /* Default light background */
}

/* Ensure contrast for text on different backgrounds */
.page-cockfighting__dark-section {
  background: #2F6BFF; /* Main brand color */
  color: #ffffff; /* White text for contrast */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #1F2D3D);
}

.page-cockfighting__section-title--light {
  color: #ffffff;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom for content */
  background-color: #F4F7FB; /* Light background for hero */
}

.page-cockfighting__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px; /* Space between content and image */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #2F6BFF; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__btn-secondary:hover {
  background: #F4F7FB;
  color: #1F2D3D;
  border-color: #1F2D3D;
}

.page-cockfighting__btn-tertiary {
  background: #6FA3FF;
  color: #ffffff;
  border: 2px solid transparent;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 8px;
}

.page-cockfighting__btn-tertiary:hover {
  background: #2F6BFF;
}

.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for content sections */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
    margin-top: 40px;
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__feature-card,
.page-cockfighting__type-card {
  background: rgba(255, 255, 255, 0.1); /* Light transparent background on dark section */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__step-item {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-title,
.page-cockfighting__tip-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p,
.page-cockfighting__tip-item p {
  color: #1F2D3D;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__tip-item {
  background: #F4F7FB;
  border-left: 5px solid #6FA3FF;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 0 8px 8px 0;
}

.page-cockfighting__responsible-gambling-section {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.page-cockfighting__responsible-gambling-section p {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #ffffff;
    font-size: 1.1em;
}

.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #F4F7FB;
  border-bottom: 1px solid #D6E2FF;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-color: transparent; /* Hide border when open */
}

.page-cockfighting__faq-question:hover {
  background-color: #e0e7f5;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2F6BFF;
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #1F2D3D;
  background-color: #ffffff;
  border-top: 1px solid #D6E2FF; /* Separator for answer */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    border-top: none; /* No top border when details is open */
}

.page-cockfighting__cta-final-section {
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}
.page-cockfighting__cta-final-section p {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #ffffff;
    font-size: 1.1em;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }
  .page-cockfighting__hero-content {
    padding: 0;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__content-area,
  .page-cockfighting__dark-section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px;
  }
  
  /* Ensure all containers with images/videos/buttons are responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent overflow */
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}

/* Specific details for FAQ toggle */
.page-cockfighting__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}