/* style/cockfighting.css */
/* 
 * Body background color is #08160F (dark).
 * Main text color should be #F2FFF6 (light).
 * Card background color is #11271B (dark).
 * Text on cards should be #F2FFF6 (light).
 */

.page-cockfighting {
  background-color: var(--background-color, #08160F); /* Fallback to custom color if --background-color not set */
  color: #F2FFF6; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Body handles padding-top from shared.css */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: #0A4B2C; /* Deep Green from custom colors */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and text */
}

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2C14E; /* Gold from custom colors */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary from custom colors */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Gold from custom colors */
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main from custom colors */
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__highlight {
  color: #57E38D; /* Glow from custom colors */
  font-weight: 700;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Light text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow from custom colors */
  border: 2px solid #2E7A4E; /* Border from custom colors */
  margin-left: 20px; /* Space from primary button */
}

.page-cockfighting__btn-secondary:hover {
  background-color: #2E7A4E; /* Border color as background on hover */
  color: #F2FFF6;
}

.page-cockfighting__btn-large {
  padding: 16px 32px;
  font-size: 1.2rem;
  min-width: 250px;
}

.page-cockfighting__btn-full-width {
  display: block;
  margin: 40px auto 0;
  max-width: 400px;
}

/* Dark Section */
.page-cockfighting__dark-section {
  background-color: #11271B; /* Card B G from custom colors */
  color: #F2FFF6; /* Light text */
}

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

.page-cockfighting__feature-card,
.page-cockfighting__type-card,
.page-cockfighting__step-card,
.page-cockfighting__promotion-card {
  background-color: #11271B; /* Card B G from custom colors */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2E7A4E; /* Border from custom colors */
}

.page-cockfighting__feature-icon,
.page-cockfighting__type-image,
.page-cockfighting__promotion-image {
  width: 100%;
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold from custom colors */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary from custom colors */
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 20px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 10px 0 60px; /* Small top padding */
  text-align: center;
  background-color: #08160F; /* Background from custom colors */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #2E7A4E; /* Border from custom colors */
  width: 100%; /* Desktop width */
  box-sizing: border-box;
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-cockfighting__video-cta {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-top: 20px;
}

/* Guide Steps */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
  color: #57E38D; /* Glow from custom colors */
}

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

.page-cockfighting__list-item {
  background-color: #11271B; /* Card B G from custom colors */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #2AD16F; /* Green from button gradient */
}

.page-cockfighting__list-title {
  font-size: 1.3rem;
  color: #F2C14E; /* Gold from custom colors */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__list-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary from custom colors */
}

/* Promotion Cards */
.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-card .page-cockfighting__btn-primary,
.page-cockfighting__promotion-card .page-cockfighting__btn-secondary {
  margin-top: 20px;
  width: auto;
  margin-left: 0; /* Override default margin-left */
}

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

.page-cockfighting__faq-item {
  background-color: #11271B; /* Card B G from custom colors */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Divider from custom colors */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main from custom colors */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* Remove default summary marker */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #57E38D; /* Glow from custom colors */
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary from custom colors */
  line-height: 1.6;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  color: #A7D9B8; /* Ensure paragraph color in FAQ answer */
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
}

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

  .page-cockfighting__container {
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .page-cockfighting__hero-section {
    padding: 10px 0 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__main-title {
    font-size: 2.2rem; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-card,
  .page-cockfighting__promotion-card {
    padding: 20px;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image {
    max-height: 150px; /* Adjust image height for mobile cards */
  }

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

  .page-cockfighting__card-description {
    font-size: 0.95rem;
  }

  /* Buttons mobile adaptation */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Add padding to button content */
    padding-right: 15px !important; /* Add padding to button content */
    margin-left: 0 !important; /* Remove horizontal margin for stacking */
    margin-bottom: 10px; /* Add vertical spacing when stacked */
  }

  .page-cockfighting__hero-content .page-cockfighting__btn-primary {
    margin-bottom: 0; /* Remove extra margin if only one button */
  }

  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
    display: flex; /* Ensure flex container */
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
  }

  .page-cockfighting__btn-full-width {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Video mobile adaptation */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
  
  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
}