/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text on light body background */
  background-color: #FFFFFF;
}

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

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  margin-bottom: 40px;
}

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

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

.page-cockfighting__hero-content {
  text-align: center;
  padding: 0 15px;
}

.page-cockfighting__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #017439;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__intro-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  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-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-cockfighting__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-cockfighting__btn--full-width {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-cockfighting__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-cockfighting__about-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__faq-section,
.page-cockfighting__call-to-action {
  padding: 50px 0;
}

.page-cockfighting__rules-section,
.page-cockfighting__strategies-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__rules-section .page-cockfighting__section-title,
.page-cockfighting__strategies-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__rules-section .page-cockfighting__section-title::after,
.page-cockfighting__strategies-section .page-cockfighting__section-title::after {
  background-color: #FFFFFF;
}

.page-cockfighting__content-wrapper p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 1em;
  text-align: justify;
}

.page-cockfighting__content-wrapper ul,
.page-cockfighting__content-wrapper ol {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 1em;
}

.page-cockfighting__content-wrapper li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0.5em;
}

.page-cockfighting__content-wrapper strong {
  color: #FFFF00; /* Custom color for important text in dark sections */
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

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

.page-cockfighting__betting-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__betting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__betting-card .page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__betting-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  text-align: center;
}

.page-cockfighting__betting-card .page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.page-cockfighting__feature-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
  color: #555555;
}

.page-cockfighting__call-to-action {
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 0;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title::after {
  background-color: #FFFFFF;
}

.page-cockfighting__call-to-action p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- General Image & Button Responsive Styles (Required) --- */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.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;
  }
}

@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 top padding as per instruction */
    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;
  }
  /* PC specific layout for elements that might appear on homepage */
  .page-cockfighting__hero-brand h1 {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-brand .page-cockfighting__trust-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
  }
  .page-cockfighting__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .page-cockfighting__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-cockfighting__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .page-cockfighting__hot-games-item-name,
  .page-cockfighting__hot-games-item-rtp,
  .page-cockfighting__hot-games-item-desc {
    display: block;
    text-align: center;
  }
}

/* --- Mobile Specific CSS (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__main-title {
    font-size: 28px;
  }
  .page-cockfighting__intro-text {
    font-size: 16px;
  }
  .page-cockfighting__section-title {
    font-size: 26px;
  }
  .page-cockfighting__about-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__call-to-action {
    padding: 30px 0;
  }
  .page-cockfighting__rules-section,
  .page-cockfighting__strategies-section {
    padding: 40px 0;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-cockfighting__betting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__betting-card {
    padding: 20px;
  }
  .page-cockfighting__betting-card .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__betting-card p {
    font-size: 15px;
  }
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  .page-cockfighting__faq-answer { padding: 0 15px 15px; }

  /* Mobile image adaptation (universal) */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__content-wrapper,
  .page-cockfighting__hero-image-wrapper,
  .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-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for promo strip */
    overflow-x: hidden !important;
  }
  .page-cockfighting__promo-card {
    flex-direction: column !important;
    text-align: center !important;
  }
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for hot games */
  }
  .page-cockfighting__hot-games-item-name,
  .page-cockfighting__hot-games-item-rtp,
  .page-cockfighting__hot-games-item-desc {
    display: none !important;
  }
  /* Brand intro and winner ticker from homepage */
  .page-cockfighting__brand-intro {
    display: block !important;
  }
  .page-cockfighting__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust if winner ticker is present */
  }
}

/* Fixed overlay for game trial (from homepage) */
.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: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-cockfighting__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}