/* style/cockfighting.css */

/* Base styles for the page content, considering dark body background */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but for clarity */
  line-height: 1.6;
}

/* Container for consistent content width */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__btn-tertiary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-cockfighting__btn-tertiary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

/* 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); /* Fixed header offset */
  min-height: 70vh;
  overflow: hidden;
  background-color: #1a1a2e; /* Ensure section has its own dark background */
}

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

.page-cockfighting__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken video for text readability */
}

.page-cockfighting__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Above video, below content */
  cursor: pointer;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #FFFFFF;
}

.page-cockfighting__hero-title {
  font-size: 3.8rem;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-cockfighting__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section & How-To Section */
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
}

.page-cockfighting__dark-section {
  background-color: #0e0e1a; /* Slightly different dark background for contrast */
}

.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
  font-size: 1.1rem;
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting__text-block strong {
  color: #FFFF00; /* Highlight important text */
}

.page-cockfighting__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-title {
  font-size: 1.8rem;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 15px;
}

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

/* How-To Play Section - Specifics */
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__step-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #017439; /* Brand color accent */
  color: #e0e0e0;
  font-size: 1.1rem;
}

.page-cockfighting__step-list li strong {
  display: block;
  font-size: 1.3rem;
  color: #FFFF00; /* Custom yellow for step titles */
  margin-bottom: 5px;
}

.page-cockfighting__call-to-action-text {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: #FFFF00;
  font-weight: bold;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-cockfighting__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promotion-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Ensure images are not too small */
  object-fit: cover;
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
  font-size: 1.5rem;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-card p {
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

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

.page-cockfighting__cta-bottom p {
  font-size: 1.2rem;
  color: #FFFF00;
  margin-bottom: 20px;
}

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

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; /* For smooth transition if not using details */
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1rem;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

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

.page-cockfighting__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* ==================================== */
/* Responsive Design */
/* ==================================== */

@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3rem;
  }

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

  .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__content-grid--reverse {
    flex-direction: column; /* Consistent stacking */
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-cockfighting__image {
    max-width: 80%; /* Adjust for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .page-cockfighting__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    min-height: 60vh;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2rem;
  }

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

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

  /* Buttons mobile adaptation */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-tertiary,
  .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;
  }
  
  /* Button containers mobile adaptation */
  .page-cockfighting__hero-actions,
  .page-cockfighting__cta-actions,
  .page-cockfighting__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__features-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 50px 0;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers in content area */
  .page-cockfighting__image-wrapper,
  .page-cockfighting__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px; /* Add padding to prevent image touching edges */
    padding-right: 15px;
  }

  /* Video mobile adaptation */
  .page-cockfighting video,
  .page-cockfighting__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__card-title {
    font-size: 1.4rem;
  }

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

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

  .page-cockfighting__step-list li {
    font-size: 1rem;
    padding: 15px;
  }

  .page-cockfighting__step-list li strong {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8rem;
  }

  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }

  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }

  .page-cockfighting__image {
    max-width: 100%;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none;
}