/* Base styles for page-cockfighting */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-cockfighting__section-intro {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-cockfighting__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting__text-block ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting__text-block ul li {
  margin-bottom: 10px;
}

.page-cockfighting__text-block ul li strong {
  color: #F2FFF6; /* Text Main */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Buttons */
.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #2AD16F; /* Green from button gradient */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #2AD16F; /* Green from button gradient */
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-cockfighting__btn-secondary:hover {
  background: #2AD16F; /* Green from button gradient */
  color: #F2FFF6; /* Text Main */
}

/* Content Grid */
.page-cockfighting__content-grid {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting__content-grid.reverse-grid {
  flex-direction: row-reverse;
}

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

.page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
}

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

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

.page-cockfighting__step-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  font-size: 30px;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-cockfighting__step-card p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-cockfighting__guide-image-bottom {
  text-align: center;
}

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

.page-cockfighting__promo-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-cockfighting__promo-content {
  padding: 25px;
}

.page-cockfighting__promo-title {
  font-size: 20px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-cockfighting__promo-content p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}
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: #0A4B2C; /* Deep Green */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
}
.page-cockfighting__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 0;
}
.page-cockfighting__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-cockfighting__faq-image-bottom {
  text-align: center;
  margin-top: 40px;
}

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

/* Image Responsive */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button Responsive */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Homepage Specific CSS (as required by prompt, even for inner page) */
@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;
  }
  /* Hide other homepage elements if present in shared */
  .page-cockfighting__promo-strip, .page-cockfighting__hot-games, .page-cockfighting__brand-intro, .page-cockfighting__winner-ticker {
    display: none !important;
  }
}

@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;
  }
  /* Ensure other homepage elements are styled for desktop if they were to appear */
  .page-cockfighting__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-cockfighting__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-cockfighting__hot-games-card-name, .page-cockfighting__hot-games-card-rtp, .page-cockfighting__hot-games-card-desc {
    display: block;
    text-align: center;
  }
}

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

  .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: 0;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .page-cockfighting__sub-title {
    font-size: 20px;
  }

  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting__promo-image {
    height: 180px;
  }

  .page-cockfighting__promo-title {
    font-size: 18px;
  }

  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: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Homepage specific elements (hidden on mobile for inner pages, as per general rule) */
  .page-cockfighting__promo-strip, .page-cockfighting__hot-games, .page-cockfighting__brand-intro, .page-cockfighting__winner-ticker {
    display: none !important;
  }
}