/* style/cockfighting.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensuring body background is dark */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background-color: #001f3f;
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-cockfighting__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFD700;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #FFD700;
  color: #001f3f;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFD700;
  color: #001f3f;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__text-block p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-cockfighting__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-cockfighting__list li {
  margin-bottom: 0.5em;
}

/* Background colors for contrast */
.page-cockfighting__dark-bg {
  background-color: #001f3f;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #1a3c5d; /* A lighter shade of the main color for contrast, but still dark */
  color: #ffffff;
}

.page-cockfighting__intro-section,
.page-cockfighting__strategy-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
}

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

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

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__image-caption {
  color: #cccccc;
  font-style: italic;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-cockfighting__step-card p {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Strategy Section */
.page-cockfighting__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__strategy-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__strategy-card p {
  color: #f0f0f0;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  padding: 80px 0;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  height: 100%;
}

.page-cockfighting__feature-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
  color: #f0f0f0;
}

.page-cockfighting__cta-bottom {
  margin-top: 50px;
}

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

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-title {
  margin: 0;
  color: #FFD700;
  font-size: 1em;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 1em;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
  margin-top: 10px;
}

/* Contact CTA Section */
.page-cockfighting__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #001f3f;
}

/* Image and Video Responsiveness (Global for .page-cockfighting) */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-cockfighting__video-section,
.page-cockfighting__video-container,
.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-cockfighting__main-title {
    font-size: 2.2em;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__contact-cta {
    padding: 60px 0;
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

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

  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }

  /* Force image and video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .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__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__steps-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__features-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__faq-item.active .page-cockfighting__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  /* Button responsiveness */
  .page-cockfighting__cta-button,
  .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__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__cta-buttons {
    flex-direction: column;
  }
}