/* Base Styles for page-cockfighting */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: 10px; /* Small top padding for first section, relying on body for header offset */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #FFA53A;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF3E6;
}

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #0D0E12;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.page-cockfighting__info-section,
.page-cockfighting__game-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: #17191F; /* Card BG */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-cockfighting__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
  transform: translateY(-2px);
}

.page-cockfighting__btn-large {
  padding: 15px 40px;
  font-size: 1.2em;
}

.page-cockfighting__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  display: block;
}

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

.page-cockfighting__card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #A84F0C;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  color: #FFA53A;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-cockfighting__card p {
  padding: 0 20px 20px;
  margin: 0;
  font-size: 0.95em;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-list li {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-cockfighting__guide-step-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__guide-list li p {
  margin-bottom: 20px;
}

.page-cockfighting__more-tips {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #FFF3E6;
}

.page-cockfighting__more-tips a {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__more-tips a:hover {
  text-decoration: underline;
}

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

.page-cockfighting__promo-item {
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #FFF3E6;
}

.page-cockfighting__promo-title {
  font-size: 1.3em;
  color: #FFA53A;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__why-choose-section {
  background-color: #0D0E12;
}

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

.page-cockfighting__reason-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__reason-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFB04D); /* Glow */
}

.page-cockfighting__reason-title {
  font-size: 1.3em;
  color: #FFA53A;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__reason-item p {
  font-size: 0.95em;
}

.page-cockfighting__text-link {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push link to bottom if card height varies */
  display: block;
  padding-top: 15px;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}
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;
}
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: rgba(255, 165, 58, 0.1);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #0D0E12;
  border-radius: 0 0 10px 10px;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

.page-cockfighting__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #17191F;
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

.page-cockfighting__cta-section p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 20px auto 40px;
  color: #FFF3E6;
}

.page-cockfighting__copyright-info {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #A84F0C;
  background-color: #0D0E12;
}

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

/* Button containers responsive styles */
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Responsive Design */
@media (max-width: 1023px) {
  .page-cockfighting__home-hero { /* This is a non-homepage, but keeping for strict compliance of template */
    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 { /* This is a non-homepage, but keeping for strict compliance of template */
    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;
  }
  /* No promo-strip, hot-games, brand-intro, winner-ticker for non-homepage */
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__hero-section {
    padding: 30px 15px;
  }
  .page-cockfighting__hero-image {
    max-height: 400px;
  }
  .page-cockfighting__info-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-cockfighting__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__card-title {
    font-size: 1.2em;
    padding: 15px 15px 8px;
  }
  .page-cockfighting__card p {
    padding: 0 15px 15px;
  }
  .page-cockfighting__guide-list li {
    padding: 20px;
  }
  .page-cockfighting__guide-step-title {
    font-size: 1.3em;
  }
  .page-cockfighting__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__grid-reasons {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__reason-icon {
    width: 60px;
    height: 60px;
  }
  .page-cockfighting__reason-title {
    font-size: 1.2em;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
  .page-cockfighting__cta-section {
    padding: 60px 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .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__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;
  }
  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
  /* No promo-strip, hot-games, brand-intro, winner-ticker for non-homepage */
}

/* Default styles for game trial overlay/start (non-homepage, but for compliance) */
.page-cockfighting__game-trial-overlay{z-index:5;pointer-events:auto;}.page-cockfighting__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-cockfighting__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-cockfighting__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-cockfighting__reward-modal{position:fixed;inset:0;z-index:10000;}