/* style/cockfighting.css */

/* Variables for colors */
:root {
  --k89-bg-primary: #08160F;
  --k89-card-bg: #11271B;
  --k89-text-main: #F2FFF6;
  --k89-text-secondary: #A7D9B8;
  --k89-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --k89-border-color: #2E7A4E;
  --k89-glow-color: #57E38D;
  --k89-gold-color: #F2C14E;
  --k89-divider-color: #1E3A2A;
  --k89-deep-green: #0A4B2C;
}

.page-cockfighting {
  background-color: var(--k89-bg-primary);
  color: var(--k89-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* body handles --header-offset, this is for visual spacing */
  background-color: var(--k89-bg-primary);
  color: var(--k89-text-main);
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image slightly for visual appeal */
  z-index: 10;
  background: linear-gradient(0deg, var(--k89-bg-primary) 50%, rgba(8, 22, 15, 0.7) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--k89-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--k89-text-secondary);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--k89-btn-gradient);
  color: var(--k89-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--k89-glow-color);
  border: 2px solid var(--k89-glow-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--k89-glow-color);
  color: var(--k89-bg-primary);
  border-color: var(--k89-glow-color);
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__why-k89-section,
.page-cockfighting__guide-section,
.page-cockfighting__types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__safety-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
  position: relative;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--k89-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-cockfighting__section-description {
  font-size: clamp(1em, 1.2vw, 1.1em);
  color: var(--k89-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-cockfighting__text-block {
  flex: 1;
  font-size: 1.1em;
  color: var(--k89-text-main);
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
}

/* Features Grid (Why K89) */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--k89-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--k89-text-secondary);
}

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

.page-cockfighting__step-item {
  background-color: var(--k89-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--k89-border-color);
  position: relative;
  overflow: hidden;
  color: var(--k89-text-main);
}

.page-cockfighting__step-icon {
  background: var(--k89-btn-gradient);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  font-size: 2em;
  font-weight: bold;
  color: var(--k89-text-main);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.3);
}

.page-cockfighting__gold-text {
  color: var(--k89-text-main);
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: var(--k89-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__step-text {
  font-size: 0.95em;
  color: var(--k89-text-secondary);
}

.page-cockfighting__cta-single {
  text-align: center;
  margin-top: 60px;
}

/* Types Section */
.page-cockfighting__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* Promotions Section */
.page-cockfighting__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promo-card {
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 1.4em;
  color: var(--k89-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__promo-text {
  font-size: 0.95em;
  color: var(--k89-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Safety Section */
.page-cockfighting__safety-content {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-cockfighting__faq-item {
  background-color: var(--k89-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--k89-border-color);
  color: var(--k89-text-main);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--k89-gold-color);
  outline: none;
  position: relative;
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--k89-glow-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__why-k89-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    max-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-wrapper,
  .page-cockfighting__safety-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    flex: none;
    width: 100%;
  }

  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

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

  .page-cockfighting__features-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__types-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card {
    padding: 25px;
  }

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

  .page-cockfighting__faq-item summary {
    padding: 18px 20px;
    font-size: 1em;
  }

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

  /* Mobile specific image/video/container rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-group,
  .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 content overflow */
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__promo-title {
    font-size: 1.2em;
  }
}