/* 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 background */
  background-color: var(--page-cockfighting-background); /* Dark background */
}

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

.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card-bg {
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-cockfighting-gold);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.6;
}

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

.page-cockfighting__hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-cockfighting__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-cockfighting__description {
  font-size: 20px;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(34, 199, 104, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-gold);
  color: var(--page-cockfighting-background);
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  font-size: 16px;
  padding: 10px 20px;
  margin-top: 15px;
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding-top: 40px;
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-cockfighting__image-wrapper {
  text-align: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__image-full-width {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__image-full-width .page-cockfighting__image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    min-width: 200px;
    min-height: 200px;
}

/* How-to-Play Section */
.page-cockfighting__how-to-play-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__step-card {
  background-color: var(--page-cockfighting-background);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-cockfighting-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-title {
  font-size: 22px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__step-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
  flex-grow: 1;
}

/* Bet Types Section */
.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__type-card {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__type-title {
  font-size: 22px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__type-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

/* Rules Section */
.page-cockfighting__rules-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-cockfighting__rule-item {
  background-color: var(--page-cockfighting-background);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-cockfighting-border);
}

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

.page-cockfighting__rule-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__final-rule-text {
  font-size: 18px;
  text-align: center;
  margin-top: 40px;
  color: var(--page-cockfighting-text-main);
  font-style: italic;
}

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

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

.page-cockfighting__tip-title {
  font-size: 22px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__tip-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

/* Advantages Section */
.page-cockfighting__advantages-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-cockfighting__advantage-item {
  background-color: var(--page-cockfighting-background);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-cockfighting-border);
}

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

.page-cockfighting__advantage-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

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

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

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
  margin-top: 40px;
  padding: 18px 40px;
  font-size: 20px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-cockfighting__content-grid .page-cockfighting__image-wrapper {
    order: 2; /* Image on right */
  }
  .page-cockfighting__content-grid:nth-child(even) .page-cockfighting__image-wrapper {
    order: 1; /* Image on left for even sections */
  }
  .page-cockfighting__content-grid:nth-child(even) .page-cockfighting__text-block {
    order: 2;
  }
}

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

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

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

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

  .page-cockfighting__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 17px;
    margin-bottom: 30px;
  }

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

  .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;
    padding-right: 15px;
  }
  
  .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__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block p {
    font-size: 16px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-video-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__step-title,
  .page-cockfighting__type-title,
  .page-cockfighting__rule-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__advantage-title {
    font-size: 20px;
  }

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

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

  .page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 18px;
  }
}