/* Custom Colors */
:root {
  --88neo-primary: #FF8C1A;
  --88neo-secondary: #FFA53A;
  --88neo-card-bg: #17191F;
  --88neo-bg: #0D0E12;
  --88neo-text-main: #FFF3E6;
  --88neo-border: #A84F0C;
  --88neo-glow: #FFB04D;
  --88neo-deep-orange: #D96800;
  --header-offset: 122px; /* Default from shared, will be overridden by body padding-top */
}

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  background: var(--88neo-bg);
  color: var(--88neo-text-main); /* Ensure contrast with dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body will handle main offset */
}

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

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

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--88neo-primary);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-cockfighting__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--88neo-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 40px; /* Adjust padding as needed, main padding handled by body */
  background: linear-gradient(180deg, rgba(13,14,18,0) 0%, var(--88neo-bg) 100%);
}

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

.page-cockfighting__hero-content {
  position: relative;
  padding: 30px 15px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
  background: rgba(13,14,18,0.8); /* Dark background for text visibility */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 2;
  border: 1px solid var(--88neo-border);
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
  color: var(--88neo-glow);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--88neo-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, var(--88neo-secondary) 0%, var(--88neo-deep-orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255,165,58,0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255,165,58,0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--88neo-primary);
  border: 2px solid var(--88neo-primary);
  box-shadow: inset 0 0 0 2px var(--88neo-primary);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--88neo-primary);
  color: #ffffff;
  border-color: var(--88neo-primary);
}

.page-cockfighting__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-cockfighting__card,
.page-cockfighting__promo-card,
.page-cockfighting__feature-item {
  background: var(--88neo-card-bg); /* Use custom card background */
  border: 1px solid var(--88neo-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--88neo-text-main); /* Text color for cards */
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 15px var(--88neo-glow);
}

.page-cockfighting__card-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-content,
.page-cockfighting__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title {
  font-size: 22px;
  color: var(--88neo-glow);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__card-description,
.page-cockfighting__promo-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--88neo-text-main);
}

/* Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  background: var(--88neo-card-bg);
  border: 1px solid var(--88neo-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  color: var(--88neo-text-main);
}

.page-cockfighting__list-title {
  font-size: 20px;
  color: var(--88neo-glow);
  margin-bottom: 10px;
  font-weight: 600;
}

/* Features */
.page-cockfighting__feature-item {
  text-align: center;
  padding: 25px;
}

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

.page-cockfighting__feature-title {
  font-size: 20px;
  color: var(--88neo-glow);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--88neo-text-main);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--88neo-border);
  overflow: hidden;
  background: var(--88neo-card-bg);
  box-shadow: 0 3px 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;
  color: var(--88neo-glow);
  font-weight: 600;
  font-size: 18px;
}
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: rgba(255,140,26,0.1);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--88neo-glow);
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--88neo-primary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255,140,26,0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 12px 12px;
  color: var(--88neo-text-main);
  font-size: 16px;
}
.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Copyright */
.page-cockfighting__copyright {
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
  font-size: 14px;
  color: rgba(255,243,230,0.7);
  background: var(--88neo-card-bg);
  border-top: 1px solid var(--88neo-border);
}

/* --- Homepage Game Trial CSS (Required by template, even if not used on this page) --- */
/* A. @media (max-width: 1023px) must be output as is */
@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;
  }
}