/* style/cockfighting.css */

:root {
  --may88-primary: #26A9E0;
  --may88-secondary: #FFFFFF;
  --may88-dark-text: #333333;
  --may88-light-text: #ffffff;
  --may88-login-btn: #EA7C07;
  --may88-bg-dark: #0a0a0a; /* Body background from shared.css */
}

.page-cockfighting {
  color: var(--may88-light-text); /* Default text color for dark body background */
  background-color: var(--may88-bg-dark);
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 2.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--may88-light-text);
  margin-bottom: 20px;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--may88-light-text);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--may88-primary);
  color: var(--may88-light-text);
  border: 2px solid var(--may88-primary);
}

.page-cockfighting__btn-primary:hover {
  background: darken(var(--may88-primary), 10%); /* Placeholder for CSS preprocessor like Sass */
  background: #1f8ec4;
  border-color: #1f8ec4;
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--may88-primary);
  border: 2px solid var(--may88-primary);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--may88-primary);
  color: var(--may88-light-text);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9em;
  background: var(--may88-primary);
  color: var(--may88-light-text);
  border: 2px solid var(--may88-primary);
}

.page-cockfighting__btn-small:hover {
  background: darken(var(--may88-primary), 10%);
  background: #1f8ec4;
  border-color: #1f8ec4;
}

/* General Section Styling */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.2em);
  font-weight: 700;
  color: var(--may88-primary);
  text-align: center;
  margin-bottom: 30px;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--may88-light-text);
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__dark-bg {
  background-color: var(--may88-bg-dark);
  color: var(--may88-light-text);
  padding: 80px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: var(--may88-primary);
}

.page-cockfighting__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark body */
  color: var(--may88-light-text);
  padding: 80px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--may88-primary);
}

/* About Section */
.page-cockfighting__about-section {
  text-align: center;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  text-align: center;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-cockfighting__list-item {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--may88-light-text);
}

.page-cockfighting__list-item strong {
  color: var(--may88-primary);
}

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

/* Guide Section */
.page-cockfighting__guide-section {
  text-align: center;
}

.page-cockfighting__numbered-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: left;
  counter-reset: guide-step;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
  padding-left: 40px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--may88-primary);
  color: var(--may88-light-text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  text-align: center;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1); /* Light background on dark body */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--may88-primary);
  margin-bottom: 10px;
}

.page-cockfighting__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--may88-light-text);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
  text-align: center;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--may88-light-text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-question::marker {
  display: none;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--may88-primary);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-color: transparent;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 0.98em;
  line-height: 1.6;
  color: var(--may88-light-text);
  background: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 4.5vw, 2em);
  }

  .page-cockfighting__dark-bg,
  .page-cockfighting__light-bg {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .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-left: 15px !important;
    padding-right: 15px !important;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__dark-bg,
  .page-cockfighting__light-bg {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 5.5vw, 1.8em);
    margin-bottom: 25px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__card-text {
    font-size: 0.95em;
  }

  .page-cockfighting img,
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.2em;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.2em, 6vw, 1.6em);
  }

  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__card-text,
  .page-cockfighting__faq-qtext,
  .page-cockfighting__faq-answer {
    font-size: 0.9em;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    padding: 12px 20px;
  }
}