.page-cockfighting {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: 'Arial', sans-serif;
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  text-align: center;
  background-color: #17191F;
  border-bottom: 1px solid #A84F0C;
  padding-bottom: 40px;
}

.page-cockfighting__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255,165,58,0.5);
}

.page-cockfighting__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
  box-shadow: 0 6px 20px rgba(255,176,77,0.6);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 10px rgba(255,165,58,0.2);
}

.page-cockfighting__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFB04D;
  box-shadow: 0 6px 15px rgba(255,176,77,0.4);
  transform: translateY(-2px);
}

.page-cockfighting__btn-link {
  background: transparent;
  color: #FFA53A;
  border: 1px solid #FFA53A;
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-cockfighting__btn-link:hover {
  background: #FFA53A;
  color: #17191F;
}

.page-cockfighting__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid rgba(168,79,12,0.3);
}

.page-cockfighting__section:last-of-type {
  border-bottom: none;
  padding-bottom: 80px;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #FFA53A;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting__section-description {
  font-size: 1.05em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF3E6;
}

.page-cockfighting__features-grid,
.page-cockfighting__grid-2-cols,
.page-cockfighting__grid-3-cols,
.page-cockfighting__steps-grid,
.page-cockfighting__promo-cards {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

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

.page-cockfighting__grid-2-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__grid-3-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

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

.page-cockfighting__feature-item,
.page-cockfighting__game-card,
.page-cockfighting__step-item,
.page-cockfighting__tip-card,
.page-cockfighting__promo-card {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__feature-title,
.page-cockfighting__game-title,
.page-cockfighting__tip-title,
.page-cockfighting__promo-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-cockfighting__feature-item p,
.page-cockfighting__game-description,
.page-cockfighting__step-item p,
.page-cockfighting__tip-card p,
.page-cockfighting__promo-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF3E6;
  flex-grow: 1;
}

.page-cockfighting__game-image,
.page-cockfighting__tip-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__step-item {
  text-align: center;
  padding: 25px;
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 15px;
  background: rgba(255,140,26,0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid #A84F0C;
}

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

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
}

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: #2a2d34;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  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 20px 20px;
  background: #0D0E12;
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding: 0;
  line-height: 1.7;
  color: #FFF3E6;
}

.page-cockfighting__conclusion .page-cockfighting__cta-buttons {
  margin-top: 40px;
}

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

.page-cockfighting__section,
.page-cockfighting__container,
.page-cockfighting__card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 1023px Media Query (for homepage trial layout, included as per instruction) */
@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;
  }
}

/* 1024px Media Query (for homepage trial layout, included as per instruction) */
@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; /* Added 16px horizontal padding */
    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;
  }
  /* Placeholder for promo-strip and hot-games PC styles, as this is a subpage */
  .page-cockfighting__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

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

  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }

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

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

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

  .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;
  }
  
  .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__section {
    padding: 40px 15px;
  }

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

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

  .page-cockfighting__features-grid,
  .page-cockfighting__grid-2-cols,
  .page-cockfighting__grid-3-cols,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting__feature-title,
  .page-cockfighting__game-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__promo-title {
    font-size: 1.2em;
  }

  .page-cockfighting__game-image,
  .page-cockfighting__tip-image,
  .page-cockfighting__promo-image {
    min-height: 180px; /* Adjusted for mobile */
  }

  .page-cockfighting__step-number {
    font-size: 2em;
    width: 60px;
    height: 60px;
  }

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

  /* General image and container responsive rules */
  .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;
  }

  /* Placeholder for promo-strip and hot-games mobile styles */
  .page-cockfighting__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Example mobile adjustment */
    overflow-x: hidden;
  }
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-cockfighting__hot-games-item-name, .page-cockfighting__hot-games-item-rtp, .page-cockfighting__hot-games-item-desc {
    display: none;
  }
  .page-cockfighting__brand-intro { /* If this existed, ensure it shows on mobile */
    display: block;
  }
  .page-cockfighting__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust if winner ticker is fixed */
  }
}

/* Placeholder for shared game trial elements if this page were index.html */
.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;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-cockfighting__reward-modal-content {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255,165,58,0.5);
  position: relative;
}
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFA53A;
  cursor: pointer;
  line-height: 1;
}
.page-cockfighting__reward-modal h3 {
  color: #FFA53A;
  font-size: 1.8em;
  margin-bottom: 15px;
}
.page-cockfighting__reward-modal p {
  color: #FFF3E6;
  margin-bottom: 25px;
}
.page-cockfighting__reward-modal .page-cockfighting__btn-primary {
  width: auto;
  padding: 10px 20px;
  font-size: 1em;
}