/* style/cockfighting.css */

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

/* General Page Styles */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--j99-text-main); /* Default text color for dark body background */
  background-color: var(--j99-bg-primary); /* Ensures consistency with body background assumption */
}

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--j99-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--j99-gold-color);
  margin-bottom: 15px;
}

.page-cockfighting__dark-section {
  background-color: var(--j99-bg-primary);
  padding: 60px 0;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-description,
.page-cockfighting__light-bg .page-cockfighting__card-title,
.page-cockfighting__light-bg .page-cockfighting__card-text,
.page-cockfighting__light-bg .page-cockfighting__tip-title,
.page-cockfighting__light-bg .page-cockfighting__tip-text,
.page-cockfighting__light-bg .page-cockfighting__faq-qtext,
.page-cockfighting__light-bg .page-cockfighting__faq-answer p {
  color: #333333;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--j99-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: var(--j99-main-color);
  border: 2px solid var(--j99-main-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--j99-main-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--j99-bg-primary); /* Fallback if image fails */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
}

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

.page-cockfighting__hero-content-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  text-align: center;
  padding: 0 20px;
}

.page-cockfighting__hero-title {
  font-weight: 700;
  color: var(--j99-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  color: var(--j99-text-main);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
}

.page-cockfighting__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-cockfighting__image-block-img {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  width: 100%;
  height: auto;
}

.page-cockfighting__text-content {
  flex: 1;
  max-width: 50%;
}

.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--j99-text-secondary);
}

.page-cockfighting__list-icon {
  color: var(--j99-gold-color);
  font-size: 1.2rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.page-cockfighting__feature-list li strong {
  color: var(--j99-text-main);
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
}

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

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
  width: 100%; /* Important for desktop flex */
  max-width: 100%;
}

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

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

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
}

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

.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--j99-border-color);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
  padding: 0 15px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
}

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

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

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background: var(--j99-button-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px var(--j99-glow-color);
}

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

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

/* Rules Section */
.page-cockfighting__rules-section {
  padding: 80px 0;
}

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

.page-cockfighting__card--rules,
.page-cockfighting__card--odds {
  padding: 30px;
  text-align: left;
}

.page-cockfighting__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__bullet-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
}

.page-cockfighting__bullet-list li strong {
  color: #000000;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
}

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

.page-cockfighting__promo-card {
  background-color: var(--j99-bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--j99-border-color);
  text-align: center;
  padding-bottom: 20px;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--j99-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__promo-text {
  font-size: 1rem;
  color: var(--j99-text-secondary);
  line-height: 1.6;
  padding: 0 15px;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
}

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

.page-cockfighting__tip-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.page-cockfighting__tip-text {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

/* Security Section */
.page-cockfighting__security-section {
  padding: 80px 0;
}

.page-cockfighting__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

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

.page-cockfighting__security-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

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

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

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: #f0f0f0;
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--j99-main-color);
  margin-left: 15px;
}

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

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8rem;
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-cockfighting__image-block-img,
  .page-cockfighting__text-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content-wrapper {
    margin-top: -50px;
  }
  .page-cockfighting__hero-title {
    font-size: 2.2rem;
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__section-description {
    font-size: 0.95rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__promo-title,
  .page-cockfighting__step-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__security-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Image/Video/Container Mobile Responsiveness */
  .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; /* Ensure no overflow */
  }
  .page-cockfighting__hero-section,
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}