/* style/cockfighting.css */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color on dark body background */
  background: var(--site-bg); /* Inherited from shared.css */
}

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

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

.page-cockfighting__section-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 2px 2px 4px var(--deep-red-color);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-cockfighting__highlight-text {
  color: var(--gold-color);
  font-weight: bold;
}

.page-cockfighting__keyword-text {
  color: var(--glow-color);
  font-weight: 600;
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
  overflow: hidden;
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 3px 3px 6px var(--deep-red-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--button-gradient);
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 18px 45px;
  background: transparent;
  color: var(--gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: var(--background-color);
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  background-color: var(--primary-color);
}

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

.page-cockfighting__card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-color);
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
  text-align: center;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.7;
  text-align: center;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
  background-color: var(--background-color);
}

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

.page-cockfighting__step-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 2px solid var(--border-color);
}

.page-cockfighting__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px var(--deep-red-color);
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-cockfighting__step-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tips Section */
.page-cockfighting__tips-section {
  background-color: var(--primary-color);
}

.page-cockfighting__content-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
}

.page-cockfighting__text-content {
  flex: 2;
}

.page-cockfighting__image-aside {
  flex: 1;
  min-width: 250px;
}

.page-cockfighting__aside-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border-color);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.page-cockfighting__list li strong {
  color: var(--gold-color);
}

.page-cockfighting__list li::before {
  content: '✓';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  background-color: var(--background-color);
}

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

.page-cockfighting__bet-type-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
}

.page-cockfighting__bet-type-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-cockfighting__bet-type-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: var(--primary-color);
}

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

.page-cockfighting__promo-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
}

.page-cockfighting__center-actions {
  margin-top: 40px;
  text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--background-color);
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main-color);
  box-shadow: 0 4px 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(--gold-color);
}
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: var(--deep-red-color);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-cockfighting__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-red-color);
  border-radius: 0 0 10px 10px;
}

.page-cockfighting__faq-answer p {
  color: var(--text-main-color);
  font-size: 1em;
  line-height: 1.7;
  margin-top: 10px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section .page-cockfighting__container {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.2em;
  }
  .page-cockfighting__cta-button, .page-cockfighting__btn-secondary {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-cockfighting__content-flex {
    flex-direction: column;
    align-items: center;
  }
  .page-cockfighting__image-aside {
    margin-top: 30px;
    width: 100%;
  }
  .page-cockfighting__aside-image {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting 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: 15px 25px !important;
    font-size: 1em !important;
  }
  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__feature-grid, .page-cockfighting__step-grid, .page-cockfighting__bet-type-grid, .page-cockfighting__promo-grid {
    gap: 20px;
  }
  .page-cockfighting__card, .page-cockfighting__step-item, .page-cockfighting__bet-type-card, .page-cockfighting__promo-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__card-title, .page-cockfighting__step-title, .page-cockfighting__bet-type-title {
    font-size: 1.4em;
  }
  .page-cockfighting__step-number {
    font-size: 2.5em;
  }
  .page-cockfighting__list li {
    font-size: 0.95em;
    padding-left: 25px;
  }
  .page-cockfighting__list li::before {
    left: 0;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 1.8em;
    width: 25px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
  }
  .page-cockfighting__faq-answer p {
    font-size: 0.9em;
  }
  .page-cockfighting__cta-final-section .page-cockfighting__container {
    padding: 40px 20px;
    border-radius: 10px;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__hero-actions,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__feature-grid,
  .page-cockfighting__step-grid,
  .page-cockfighting__bet-type-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-actions {
    gap: 10px;
  }
}