/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--page-cockfighting-text-main); /* Light text for dark body background */
  background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-cockfighting-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  position: relative; /* Ensure image is above content for correct DOM order */
  z-index: 1;
  margin-bottom: 40px; /* Space between image and content */
  border-radius: 0;
  box-shadow: none;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: -40px; /* Pull content up slightly, but not over image */
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--page-cockfighting-text-main);
  border: 2px solid var(--page-cockfighting-secondary-color);
  box-shadow: 0 0 10px rgba(34, 199, 104, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-secondary-color);
  color: var(--page-cockfighting-background);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(34, 199, 104, 0.5);
}

/* Sections General */
.page-cockfighting__intro-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__dark-section {
  padding: 80px 0;
  background-color: var(--page-cockfighting-card-bg);
}

/* Feature Grid (Why Choose Us) */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background-color: var(--page-cockfighting-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-cockfighting-border);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
}

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

.page-cockfighting__bet-type-card {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__bet-type-title {
  font-size: 1.6rem;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__bet-type-description {
  font-size: 1.05rem;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
}

/* How to Play Steps */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__step-card {
  background-color: var(--page-cockfighting-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-cockfighting-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  background-color: var(--page-cockfighting-deep-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.6;
}

.page-cockfighting__step-description a {
  color: var(--page-cockfighting-gold);
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__step-description a:hover {
  color: var(--page-cockfighting-glow);
}

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

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

.page-cockfighting__tip-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  color: var(--page-cockfighting-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__tip-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 80px 0;
  background-color: var(--page-cockfighting-deep-green);
  text-align: center;
}

.page-cockfighting__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--page-cockfighting-background);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-cockfighting__btn-video-cta {
  margin-top: 20px;
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-cockfighting__faq-question:hover {
  background-color: var(--page-cockfighting-deep-green);
  filter: brightness(1.2);
}

.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.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
  background-color: var(--page-cockfighting-card-bg);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__why-choose-us-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__video-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  /* Images, Videos, Buttons responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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,
  .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;
    overflow: hidden !important;
  }

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

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

  .page-cockfighting__hero-content {
    margin-top: 0;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .page-cockfighting__step-number {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  .page-cockfighting__step-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__tip-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__feature-description,
  .page-cockfighting__bet-type-description,
  .page-cockfighting__step-description,
  .page-cockfighting__tip-description {
    font-size: 0.95rem;
  }
}