/* style/cockfighting.css */

/* Root variables for consistent colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-color: #ffffff;
  --dark-bg-color: #017439; /* Using primary color for dark sections */
  --body-background: var(--background-color, #121212); /* Inherited from shared.css */
}

/* Base styles for the page content */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--body-background);
}

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

.page-cockfighting__content-area--centered {
  text-align: center;
}

/* Section specific styles */
.page-cockfighting__dark-section {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 60px 0;
}

.page-cockfighting__light-bg {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  gap: 40px;
  min-height: 600px;
  overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
  background-color: var(--register-button-bg); /* Use specific register color */
  color: var(--button-text-color); /* Use specific font color */
  border: 2px solid var(--register-button-bg);
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--dark-text-color);
}

.page-cockfighting__btn-link {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-cockfighting__btn-link:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

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

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  max-width: 1280px; /* Match video width */
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-cockfighting__video-description {
  font-size: 1.1em;
  margin-top: 20px;
  color: var(--light-text-color);
}

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

.page-cockfighting__feature-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-text-color);
}

.page-cockfighting__feature-icon {
  width: 200px; /* Ensure minimum size */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-cockfighting__feature-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-cockfighting__step-item {
  padding: 30px;
  background-color: var(--light-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--dark-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--dark-text-color);
  flex-grow: 1; /* Push button to bottom */
}

/* 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-card {
  background-color: rgba(255, 255, 255, 0.1); /* Adjusted for dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
}

.page-cockfighting__tip-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-cockfighting__tip-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Promotions CTA */
.page-cockfighting__promotions-cta {
  padding: 80px 20px;
  text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--light-bg-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--dark-text-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--dark-text-color);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Important for JS toggle */
  padding: 20px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 15px;
}

/* Contact CTA */
.page-cockfighting__contact-cta {
  padding: 80px 20px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    width: 100%;
  }

  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__content-area {
    padding: 20px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-section {
    padding: 60px 15px;
  }

  .page-cockfighting__hero-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,
  .page-cockfighting__btn-link {
    padding: 12px 20px;
    font-size: 1em;
    width: 100%; /* Full width for buttons on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-cta,
  .page-cockfighting__faq-section,
  .page-cockfighting__contact-cta {
    padding: 40px 0;
  }

  /* Image responsive rules for mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must also be responsive */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-card,
  .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;
  }

  /* Video responsive rules for mobile */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__video-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__feature-icon {
    width: 200px !important; /* Enforce min-size 200px */
    height: auto !important; /* Maintain aspect ratio */
  }

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

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

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

  /* Ensure content area padding for mobile */
  .page-cockfighting__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
}