/* style/cockfighting.css */

/* Body background color from shared.css, infer dark background */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background-color); /* #08160F from custom palette */
}

.page-cockfighting__dark-bg {
  background-color: var(--background-color); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__light-bg {
  background-color: #11271B; /* Card B G */
  color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  margin-top: -80px; /* Overlap slightly for visual flow, not text overlay */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-cockfighting__highlight {
  color: var(--glow); /* #57E38D */
  font-weight: bold;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* #2E7A4E with opacity */
  transform: translateY(-2px);
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-cockfighting__section-intro {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-cockfighting__features-grid,
.page-cockfighting__types-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* #F2FFF6 */
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--glow); /* #57E38D */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-cockfighting__card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-cockfighting__image-block {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__feature-image,
.page-cockfighting__types-image,
.page-cockfighting__guide-image,
.page-cockfighting__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-cockfighting__step-card {
  position: relative;
  padding-top: 60px;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--glow); /* #57E38D */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 2px solid var(--gold); /* #F2C14E */
  box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__step-card .page-cockfighting__btn-primary {
  margin-top: 20px;
  display: inline-block;
}

.page-cockfighting__live-stream-section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure desktop width: 100% is present */
  max-width: 1200px;
}

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

.page-cockfighting__video-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-cockfighting__tips-list li {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider); /* #1E3A2A */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-main); /* #F2FFF6 */
  text-align: left;
  position: relative;
  padding-left: 45px;
}

.page-cockfighting__tips-list li::before {
  content: '✓';
  color: var(--glow); /* #57E38D */
  font-size: 1.5em;
  position: absolute;
  left: 15px;
  top: 18px;
  font-weight: bold;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main); /* #F2FFF6 */
  background-color: #11271B; /* Card B G */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question:hover {
  background-color: #1a3023; /* Slightly lighter for hover */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: #1a3023;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent clicks on text from interfering with summary toggle */
}

.page-cockfighting__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow); /* #57E38D */
  pointer-events: none; /* Prevent clicks on toggle from interfering with summary toggle */
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
  }

  .page-cockfighting__main-title {
    font-size: 2em;
  }

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

  .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: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

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

  .page-cockfighting__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: 10px;
  }

  .page-cockfighting__step-card {
    padding-top: 50px;
  }

  .page-cockfighting__live-stream-section {
    padding: 40px 15px;
  }

  .page-cockfighting__video-wrapper {
    margin: 30px auto 15px auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-description {
    font-size: 0.95em;
  }

  .page-cockfighting__tips-list {
    margin: 30px auto;
  }

  .page-cockfighting__tips-list li {
    font-size: 0.9em;
    padding: 15px 15px 15px 40px;
  }

  .page-cockfighting__tips-list li::before {
    font-size: 1.3em;
    left: 10px;
    top: 15px;
  }

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

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

  .page-cockfighting__faq-toggle {
    font-size: 1.5em;
  }

  .page-cockfighting__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.9em;
  }

  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .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; /* Ensure no overflow */
  }

  .page-cockfighting__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.7em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
}