/* Base styles for the cockfighting page */
.page-cockfighting {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-cockfighting__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  border-bottom: 2px solid var(--divider-color, #1E3A2A);
}

.page-cockfighting__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop hero */
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  margin-top: -100px; /* Pull content slightly over image for visual flow, not overlap */
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__main-title {
  font-size: 48px;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__hero-content .page-cockfighting__description {
  font-size: 20px;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 40px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--glow-color, #57E38D);
  color: #08160F;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

/* Why Choose Us Section */
.page-cockfighting__why-choose-us {
  background-color: var(--deep-green-color, #0A4B2C);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__feature-card {
  background: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__feature-text {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
  flex-grow: 1;
}

/* Bet Types Section */
.page-cockfighting__bet-types {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-cockfighting__list-item-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__list-title {
  font-size: 22px;
  color: var(--primary-color, #11A84E);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__list-text {
  font-size: 16px;
  color: #555555;
}

/* How to Play Section */
.page-cockfighting__how-to-play {
  background-color: var(--card-bg-color, #11271B);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 2px solid var(--divider-color, #1E3A2A);
}

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

.page-cockfighting__step-card {
  background: var(--deep-green-color, #0A4B2C);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glow-color, #57E38D);
  color: #08160F;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__step-text {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  background: var(--gold-color, #F2C14E);
  color: #08160F;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-small:hover {
  background: #e0b040;
}

/* Tips Section */
.page-cockfighting__tips {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-cockfighting__tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__tip-list li {
  background: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-main-color, #F2FFF6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-cockfighting__tip-list li strong {
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* Promotions Section */
.page-cockfighting__promotions {
  background-color: var(--deep-green-color, #0A4B2C);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 2px solid var(--divider-color, #1E3A2A);
}

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

.page-cockfighting__promo-card {
  background: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__promo-title {
  font-size: 24px;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__promo-text {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__center-cta {
  text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg-color, #11271B);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: var(--deep-green-color, #0A4B2C);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #F2FFF6);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 39, 27, 0.8); /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Final CTA Section */
.page-cockfighting__final-cta {
  background-color: var(--deep-green-color, #0A4B2C);
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  border-top: 2px solid var(--divider-color, #1E3A2A);
}

.page-cockfighting__final-cta .page-cockfighting__description {
  margin-bottom: 40px;
}

/* Common image responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- VERBATIM REQUIRED MEDIA QUERIES FOR HOMEPAGE LAYOUT --- */
/* These are included as per strict instruction, even if not directly used by this inner page's specific content. */
@media (max-width: 1023px) {
  .page-cockfighting__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot {
    display: none !important;
  }
  .page-cockfighting__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-topbar,
  .page-cockfighting__game-trial-bottombar {
    display: none !important;
  }
  .page-cockfighting__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-cockfighting__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cockfighting__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-cockfighting__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot,
  .page-cockfighting__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cockfighting__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cockfighting__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}
/* --- END VERBATIM REQUIRED MEDIA QUERIES --- */

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

  .page-cockfighting__section {
    padding: 20px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-cockfighting__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image-wrapper {
    height: 300px;
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-cockfighting__main-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .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;
  }

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

  .page-cockfighting__feature-card,
  .page-cockfighting__list-item-card,
  .page-cockfighting__step-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__list-title,
  .page-cockfighting__step-title,
  .page-cockfighting__promo-title {
    font-size: 20px;
  }

  .page-cockfighting__feature-text,
  .page-cockfighting__list-text,
  .page-cockfighting__step-text,
  .page-cockfighting__promo-text {
    font-size: 15px;
  }

  .page-cockfighting__tip-list {
    min-width: auto;
    width: 100%;
  }

  .page-cockfighting__content-image {
    min-width: auto;
    width: 100%;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container responsive styles */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__why-choose-us,
  .page-cockfighting__bet-types,
  .page-cockfighting__how-to-play,
  .page-cockfighting__tips,
  .page-cockfighting__promotions,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
  }
}