@media (max-width: 1023px) {
  .page-cockfighting-rules-and-tips__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-rules-and-tips__hero-brand,
  .page-cockfighting-rules-and-tips__hero-jackpot {
    display: none !important;
  }
  .page-cockfighting-rules-and-tips__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-rules-and-tips__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial-topbar,
  .page-cockfighting-rules-and-tips__game-trial-bottombar {
    display: none !important;
  }
  .page-cockfighting-rules-and-tips__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-rules-and-tips__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-rules-and-tips__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cockfighting-rules-and-tips__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-cockfighting-rules-and-tips__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-rules-and-tips__hero-brand,
  .page-cockfighting-rules-and-tips__hero-jackpot,
  .page-cockfighting-rules-and-tips__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cockfighting-rules-and-tips__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting-rules-and-tips__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cockfighting-rules-and-tips__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Base styles for the page */
.page-cockfighting-rules-and-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be adjusted by contrast */
  background-color: var(--background); /* Default background color */
}

.page-cockfighting-rules-and-tips__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules-and-tips__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.page-cockfighting-rules-and-tips__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting-rules-and-tips__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__main-title {
  font-size: 3em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules-and-tips__description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting-rules-and-tips__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting-rules-and-tips__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-and-tips__section {
  padding: 40px 0;
  background-color: var(--background);
}

.page-cockfighting-rules-and-tips__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-cockfighting-rules-and-tips__sub-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules-and-tips__text-block {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-cockfighting-rules-and-tips__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-cockfighting-rules-and-tips__list-item {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-cockfighting-rules-and-tips__list-item strong {
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section Styles */
details.page-cockfighting-rules-and-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
}
details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__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-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question:hover {
  background: #1a3a29; /* Slightly lighter card background on hover */
}
.page-cockfighting-rules-and-tips__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-cockfighting-rules-and-tips__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting-rules-and-tips__faq-item .page-cockfighting-rules-and-tips__faq-answer {
  padding: 0 20px 20px;
  background: #0d1e16; /* Slightly darker than card-bg for contrast */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

/* CTA Section */
.page-cockfighting-rules-and-tips__cta-section {
  text-align: center;
  padding: 60px 0;
  background: var(--deep-green);
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__cta-section .page-cockfighting-rules-and-tips__section-title {
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__text-secondary {
  color: var(--text-secondary);
}

.page-cockfighting-rules-and-tips__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting-rules-and-tips__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.page-cockfighting-rules-and-tips__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-and-tips__btn-secondary {
  background: transparent;
  color: var(--glow);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--glow);
  cursor: pointer;
  display: inline-block;
}

.page-cockfighting-rules-and-tips__btn-secondary:hover {
  background: var(--glow);
  color: #08160F;
}

/* Copyright Section */
.page-cockfighting-rules-and-tips__copyright {
  padding: 20px 0;
  background-color: var(--background);
  text-align: center;
  border-top: 1px solid var(--divider);
}

.page-cockfighting-rules-and-tips__copyright-text {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin: 0;
}

/* Global image responsiveness */
.page-cockfighting-rules-and-tips img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-cockfighting-rules-and-tips__hero-section {
    padding-bottom: 20px;
  }

  .page-cockfighting-rules-and-tips__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting-rules-and-tips__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-and-tips__cta-button,
  .page-cockfighting-rules-and-tips__btn-primary,
  .page-cockfighting-rules-and-tips__btn-secondary,
  .page-cockfighting-rules-and-tips a[class*="button"],
  .page-cockfighting-rules-and-tips 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;
    font-size: 1em;
  }

  .page-cockfighting-rules-and-tips__button-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-cockfighting-rules-and-tips__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-and-tips__sub-title {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-cockfighting-rules-and-tips__text-block,
  .page-cockfighting-rules-and-tips__list-item {
    font-size: 0.95em;
  }

  .page-cockfighting-rules-and-tips__container,
  .page-cockfighting-rules-and-tips__section,
  .page-cockfighting-rules-and-tips__card,
  .page-cockfighting-rules-and-tips__introduction,
  .page-cockfighting-rules-and-tips__rules,
  .page-cockfighting-rules-and-tips__betting-tips,
  .page-cockfighting-rules-and-tips__advanced-strategies,
  .page-cockfighting-rules-and-tips__safety,
  .page-cockfighting-rules-and-tips__faq-section,
  .page-cockfighting-rules-and-tips__cta-section,
  .page-cockfighting-rules-and-tips__copyright {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-and-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question { padding: 15px; }
  .page-cockfighting-rules-and-tips__faq-qtext { font-size: 1em; }
  .page-cockfighting-rules-and-tips__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-cockfighting-rules-and-tips__faq-item .page-cockfighting-rules-and-tips__faq-answer { padding: 0 15px 15px; }
}

/* Variable definitions for custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Color contrast adjustments for elements */
.page-cockfighting-rules-and-tips__dark-section {
  background: var(--deep-green);
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__dark-section .page-cockfighting-rules-and-tips__text-block {
  color: var(--text-secondary);
}

.page-cockfighting-rules-and-tips__faq-item {
  background: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__faq-item .page-cockfighting-rules-and-tips__faq-answer {
  background: #0d1e16; /* Slightly different background for answer to ensure contrast */
}

.page-cockfighting-rules-and-tips__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
}

.page-cockfighting-rules-and-tips__btn-secondary {
  color: var(--glow);
  border-color: var(--glow);
}

.page-cockfighting-rules-and-tips__btn-secondary:hover {
  background: var(--glow);
  color: #08160F;
}