/* Base Styles & Typography */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background from shared.css */
  line-height: 1.6;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 10px 0 60px; /* Small top padding, not var(--header-offset) */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

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

.page-cockfighting__main-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__intro-text {
  font-size: 19px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #F3F8FF; /* Text Main */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #4FA8FF; /* Glow */
  border: 2px solid #4FA8FF; /* Glow */
}

.page-cockfighting__btn-secondary:hover {
  background: #4FA8FF;
  color: #08162B; /* Deep Navy */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 168, 255, 0.4);
}

/* Dark/Light Background Sections */
.page-cockfighting__dark-section {
  background-color: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #AFC4E8; /* Text Secondary */
}

/* Game Types Section */
.page-cockfighting__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: #08162B; /* Deep Navy */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  padding: 20px 20px 10px;
}

.page-cockfighting__card-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 20px 20px;
}

/* Why Choose Us Section */
.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-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Guide Section */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-cockfighting__guide-list li {
  background-color: #08162B; /* Deep Navy */\  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-cockfighting__guide-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-cockfighting__guide-list li p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Tips & Strategies Section */
.page-cockfighting__tips-strategies {
  text-align: left;
}

.page-cockfighting__image-right {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  float: right;
  margin-left: 30px;
}

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

.page-cockfighting__tips-list li {
  margin-bottom: 25px;
}

.page-cockfighting__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-cockfighting__tips-list li p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-cockfighting__promo-card {
  background-color: #08162B; /* Deep Navy */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-cockfighting__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 25px;
  padding: 0 20px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #08162B; /* Deep Navy */
  text-align: left;
}
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: #10233F; /* Card BG */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #F3F8FF; /* Text Main */
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #10233F; /* Card BG */
  border-radius: 0 0 8px 8px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom .page-cockfighting__cta-content {
  max-width: 800px;
}

/* General Image Styling */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@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;
  }
  /* Placeholder for promo-strip, hot-games, brand-intro, winner-ticker */
  /* This page is not index.html, so these elements are not expected to be in main content */
}

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

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

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

  .page-cockfighting__main-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .page-cockfighting__intro-text {
    font-size: 16px;
  }

  .page-cockfighting__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__feature-item {
    padding: 20px;
  }

  .page-cockfighting__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-cockfighting__feature-title {
    font-size: 18px;
  }

  .page-cockfighting__image-right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .page-cockfighting__tip-title {
    font-size: 18px;
  }

  .page-cockfighting__promo-image {
    height: 150px;
  }

  .page-cockfighting__promo-title {
    font-size: 20px;
  }

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

  /* General mobile image and container adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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__cta-buttons { flex-direction: column; }

  /* Specific for this page, if any of these were present */
  /* .page-cockfighting__promo-strip-track { grid-template-columns: repeat(2,1fr); overflow-x:hidden; } */
  /* .page-cockfighting__hot-games-grid { grid-template-columns: repeat(2,1fr); } */
  /* .page-cockfighting__brand-intro { display: block; } */
  /* .page-cockfighting__winner-ticker { position: fixed; bottom: 0; width: 100%; } */
}

/* Common styles for game trial overlay/modal - if any */
.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: #10233F; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; color: #F3F8FF; }
.page-cockfighting__reward-modal-close { position: absolute; top: 15px; right: 15px; font-size: 24px; color: #F2C14E; cursor: pointer; }
.page-cockfighting__reward-modal h3 { color: #F2C14E; margin-bottom: 15px; }
.page-cockfighting__reward-modal p { margin-bottom: 25px; }
.page-cockfighting__reward-modal.is-hidden { display: none !important; }