.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background: #F5F7FA; /* Body background from custom palette */
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding for first section */
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-cockfighting__intro-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

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

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

.page-cockfighting__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

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

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

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

.page-cockfighting__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-cockfighting__card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-cockfighting__advantage-icon,
.page-cockfighting__type-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__advantage-title,
.page-cockfighting__type-title,
.page-cockfighting__promo-title,
.page-cockfighting__guide-step-title,
.page-cockfighting__strategy-title,
.page-cockfighting__info-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-cockfighting__advantage-item p,
.page-cockfighting__type-content p,
.page-cockfighting__promo-card p,
.page-cockfighting__guide-item p,
.page-cockfighting__strategy-item p,
.page-cockfighting__info-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-cockfighting__type-card .page-cockfighting__type-content {
  text-align: center;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting__guide-item {
  text-align: left;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__guide-item .page-cockfighting__btn-primary {
  margin-top: 20px;
  align-self: center;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting__strategy-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: left;
  color: #333333;
}

.page-cockfighting__strategy-item p {
  margin-bottom: 0;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

.page-cockfighting__support-info-grid .page-cockfighting__info-item {
  text-align: left;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__support-info-grid .page-cockfighting__btn-primary,
.page-cockfighting__support-info-grid .page-cockfighting__btn-secondary {
  margin-top: auto;
  align-self: center;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
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: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Common image styles for all content images */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images behave as block elements */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* --- General Mobile Adaptations (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .page-cockfighting__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__section {
    padding: 20px 0;
    margin-bottom: 10px;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__text-block {
    font-size: 1rem;
    line-height: 1.5;
  }
  .page-cockfighting__advantages-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__support-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__advantage-title,
  .page-cockfighting__type-title,
  .page-cockfighting__promo-title,
  .page-cockfighting__guide-step-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__info-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__advantage-item p,
  .page-cockfighting__type-content p,
  .page-cockfighting__promo-card p,
  .page-cockfighting__guide-item p,
  .page-cockfighting__strategy-item p,
  .page-cockfighting__info-item p {
    font-size: 0.95rem;
  }
  .page-cockfighting__guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-cockfighting__guide-item {
    padding: 20px;
  }
  .page-cockfighting__strategy-item {
    padding: 15px;
    margin-bottom: 10px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* --- Placeholder for Homepage Trial CSS (as per strict 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;
  }
}

@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 Placeholder for Homepage Trial CSS */

/* Placeholder for Homepage Promo Strip (as per strict instruction) */
@media (max-width: 768px) {
  .page-cockfighting__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    display: grid;
    gap: 10px;
  }
  .page-cockfighting__promo-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-cockfighting__promo-strip-item img {
    
    height: auto;
    margin-bottom: 5px;
  }
  .page-cockfighting__promo-strip-item h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}
/* End Placeholder for Homepage Promo Strip */

/* Placeholder for Homepage Hot Games (as per strict instruction) */
@media (max-width: 768px) {
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    display: grid;
  }
  .page-cockfighting__hot-game-card {
    text-align: center;
  }
  .page-cockfighting__hot-game-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 5px;
  }
  .page-cockfighting__hot-games-name,
  .page-cockfighting__hot-games-rtp,
  .page-cockfighting__hot-games-desc {
    display: none; /* Hide for mobile */
  }
}
/* End Placeholder for Homepage Hot Games */

/* Placeholder for Homepage Brand Intro (as per strict instruction) */
@media (max-width: 768px) {
  .page-cockfighting__brand-intro {
    display: block; /* Ensure it's visible if hidden on larger screens */
    padding: 20px 15px;
    text-align: center;
  }
  .page-cockfighting__brand-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-cockfighting__brand-intro p {
    font-size: 1rem;
    line-height: 1.5;
  }
}
/* End Placeholder for Homepage Brand Intro */

/* Placeholder for Homepage Winner Ticker (as per strict instruction) */
@media (max-width: 768px) {
  .page-cockfighting__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
    font-size: 0.9rem;
  }
  body.page-cockfighting, main.page-cockfighting {
    padding-bottom: 50px; /* Adjust body/main padding for fixed ticker */
  }
}
/* End Placeholder for Homepage Winner Ticker */

/* Placeholder for Reward Modal Close Button (as per strict instruction) */
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  z-index: 10001;
}

/* General is-hidden class for JS toggling */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Reward Modal specific styles (as per strict instruction) */
.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:not([hidden]) {
  display: flex;
}
.page-cockfighting--reward-open {
  overflow: hidden;
}