/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
}

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

.page-cockfighting__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-cockfighting__main-title {
  /* H1 font-size constraint: use clamp or avoid fixed large values */
  font-weight: bold;
  line-height: 1.2;
  color: #FFD36B;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); /* Example clamp for H1 */
}

.page-cockfighting__description {
  font-size: 18px;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text on bright button for contrast */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border */
}

.page-cockfighting__btn-secondary:hover {
  background: #3A2A12; /* Border color as hover background */
  color: #FFF6D6;
}

.page-cockfighting__hero-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-cockfighting__hero-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__intro-section,
.page-cockfighting__why-choose-us,
.page-cockfighting__types-section,
.page-cockfighting__how-to-bet,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__text-block {
  font-size: 17px;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__feature-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size for images */
  min-height: 200px;
  width: 200px;
  height: 200px;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #FFF6D6;
}

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

.page-cockfighting__card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  height: auto; /* Ensure it respects aspect ratio */
}

.page-cockfighting__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin: 20px 15px 10px;
}

.page-cockfighting__card-description {
  font-size: 15px;
  color: #FFF6D6;
  padding: 0 15px 20px;
}

.page-cockfighting__button-group {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-cockfighting__step-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  padding: 8px 15px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  font-size: 16px;
  color: #FFF6D6;
  text-align: left;
}

.page-cockfighting__step-item a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-cockfighting__tips-content {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  align-items: flex-start;
}

.page-cockfighting__tips-list-wrapper {
  flex: 2;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__tip-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__tip-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-cockfighting__tip-item p {
  font-size: 16px;
  color: #FFF6D6;
}

.page-cockfighting__tips-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 4px 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;
}
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: #1a1a1a;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 10px 10px;
}
.page-cockfighting__faq-answer p {
  font-size: 16px;
  color: #FFF6D6;
  text-align: left;
}

/* --- MANDATORY HOMEPAGE CSS SNIPPETS (VERBATIM) --- */
@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;
  }
}

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

  .page-cockfighting__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-cockfighting__description,
  .page-cockfighting__text-block {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-cockfighting__hero-section {
    padding: 40px 0;
  }

  .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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__game-types-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-cockfighting__feature-item,
  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__tip-title {
    font-size: 18px;
  }

  .page-cockfighting__feature-description,
  .page-cockfighting__card-description,
  .page-cockfighting__step-item p,
  .page-cockfighting__tip-item p {
    font-size: 15px;
  }

  .page-cockfighting__hero-image,
  .page-cockfighting__image-content,
  .page-cockfighting__tips-image,
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important;
  }

  .page-cockfighting__tips-content {
    flex-direction: column; /* Stack tips content vertically */
  }

  .page-cockfighting__tips-image {
    margin-top: 30px;
  }

  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;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }

  /* General container adaptation for mobile */
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__features-grid,
  .page-cockfighting__game-types-grid,
  .page-cockfighting__steps-list,
  .page-cockfighting__tips-list-wrapper,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- Mandatory general styles for game trial and reward modal --- */
.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 #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
}
.page-cockfighting__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.page-cockfighting__reward-modal-content {
  background: #111111;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  color: #FFF6D6;
}
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFD36B;
  cursor: pointer;
}
.page-cockfighting--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}