/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
  line-height: 1.6;
}

.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;
  background: linear-gradient(to bottom, var(--primary-color), #1a7fb0);
  color: var(--light-text-color);
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text-color);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  background: var(--login-button-color); /* Use login button color for primary CTA */
  color: var(--light-text-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting__btn-primary:hover {
  background-color: #d16b05;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background: var(--background-color);
  color: var(--dark-text-color);
}

.page-cockfighting__dark-bg {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-description,
.page-cockfighting__dark-bg .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__card-text,
.page-cockfighting__dark-bg .page-cockfighting__tips-item-title,
.page-cockfighting__dark-bg .page-cockfighting__tips-list p,
.page-cockfighting__dark-bg .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__feature-text,
.page-cockfighting__dark-bg .page-cockfighting__cta-block p,
.page-cockfighting__dark-bg .page-cockfighting__btn-link {
  color: var(--light-text-color);
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-cockfighting__image-block {
  flex: 1;
  text-align: center;
}

.page-cockfighting__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  flex-grow: 1;
}

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

.page-cockfighting__step-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-cockfighting__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__step-item p {
  margin-bottom: 20px;
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-cockfighting__tips-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--secondary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__tips-item-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

.page-cockfighting__tips-list p {
  font-size: 1em;
}

.page-cockfighting__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.page-cockfighting__cta-block p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: var(--light-text-color);
}

.page-cockfighting__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__promo-card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__promo-image {
  max-width: 100%;
  height: auto;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--primary-color);
}

.page-cockfighting__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-cockfighting__btn-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-cockfighting__btn-link:hover {
  color: #1a7fb0;
  border-color: #1a7fb0;
}

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

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-cockfighting__feature-text {
  font-size: 1em;
}

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

.page-cockfighting__faq-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--dark-text-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: #e6e6e6;
  border-bottom: none;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--dark-text-color);
  background-color: var(--secondary-color);
}

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

.page-cockfighting__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__conclusion-section p {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }

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

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

  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }

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

  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

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

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-block,
  .page-cockfighting__card-image,
  .page-cockfighting__promo-image,
  .page-cockfighting__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-link,
  .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;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-cockfighting__cta-block .page-cockfighting__btn-primary {
    margin: 0 auto 10px auto;
  }

  .page-cockfighting__step-item .page-cockfighting__btn-secondary {
    margin: 0 auto 10px auto;
  }

  .page-cockfighting__promo-card .page-cockfighting__btn-link {
    margin: 0 auto;
  }

  .page-cockfighting__feature-item .page-cockfighting__btn-link {
    margin: 0 auto;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically on mobile */
  }

  .page-cockfighting__faq-answer .page-cockfighting__btn-link {
    margin-top: 10px;
  }

  /* Ensure general sections/cards/containers adapt */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile adaptations - not used in this page, but as a general rule */
  .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;
  }
}