/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand main color for hero background */
  overflow: hidden; /* Prevent image overflow */
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

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

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  flex-grow: 1; /* Allow buttons to grow */
  text-align: center;
  max-width: 200px; /* Max width for individual buttons */
}

/* Custom colors for Register/Login buttons */
.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* General Section Styles */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #017439; /* Brand main color for titles on light backgrounds */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #ffffff; /* White text for titles on dark backgrounds */
}

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

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 60px 0;
  background-color: #ffffff; /* Auxiliary color for background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__image-with-text {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting__image-with-text .page-cockfighting__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure image is responsive */
  height: auto; /* Maintain aspect ratio */
}

.page-cockfighting__image-with-text .page-cockfighting__text-block {
  flex: 2;
  min-width: 300px;
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
  padding: 60px 0;
  background-color: #017439; /* Brand main color for background */
  color: #ffffff; /* White text for dark background */
}

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

.page-cockfighting__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-cockfighting__dark-bg .page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  color: #ffffff; /* White text for cards on dark background */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand main color for card titles */
}

.page-cockfighting__dark-bg .page-cockfighting__card-title {
  color: #ffffff; /* White text for card titles on dark background */
}

.page-cockfighting__card-text {
  font-size: 1em;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 60px 0;
  background-color: #ffffff; /* Auxiliary color for background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__feature-item {
  text-align: center;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  border-radius: 50%; /* Make icons circular if desired */
  min-width: 200px; /* Enforce minimum size for images */
  min-height: 200px;
  width: 200px; /* Display size */
  height: 200px; /* Display size */
}

.page-cockfighting__feature-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #017439;
}

.page-cockfighting__feature-description {
  font-size: 0.95em;
}

/* Registration Guide Section */
.page-cockfighting__registration-guide {
  padding: 60px 0;
  background-color: #017439; /* Brand main color for background */
  color: #ffffff; /* White text for dark background */
}

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

.page-cockfighting__step-card {
  background-color: #ffffff; /* White background for step cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

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

.page-cockfighting__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Tips & Strategy Section */
.page-cockfighting__tips-strategy-section {
  padding: 60px 0;
  background-color: #ffffff; /* Auxiliary color for background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__tips-strategy-section .page-cockfighting__grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-cockfighting__tips-strategy-section .page-cockfighting__card {
  background-color: #017439; /* Brand main color for cards in this section */
  color: #ffffff; /* White text for dark cards */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-cockfighting__tips-strategy-section .page-cockfighting__card-title {
  color: #ffffff; /* White text for titles on dark cards */
}

.page-cockfighting__tips-strategy-section .page-cockfighting__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
  background-color: #017439; /* Brand main color for background */
  color: #ffffff; /* White text for dark background */
}

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

.page-cockfighting__promo-card {
  background-color: #ffffff; /* White background for promo cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-cockfighting__promo-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Auxiliary color for background */
  color: #333333; /* Dark text for light background */
}

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

.page-cockfighting__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #017439; /* Brand main color for FAQ questions */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it expands */
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.2em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

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

  /* Ensure main content area does not cause horizontal scroll */
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__registration-guide,
  .page-cockfighting__tips-strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing from fixed header on mobile */
    min-height: 500px;
  }

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100%;
  }

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

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

  .page-cockfighting__image-with-text {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__image-with-text .page-cockfighting__content-image {
    min-width: 200px !important; /* Enforce minimum size for images */
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All images must be responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Specific image elements in content area must not be smaller than 200px */
  .page-cockfighting__feature-icon,
  .page-cockfighting__tips-strategy-section .page-cockfighting__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 200px !important; /* Display size, not smaller */
    height: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }
  
  .page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }

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

/* Global Image Sizing Enforcement (Minimum 200x200px in content area) */
.page-cockfighting img:not(.page-cockfighting__hero-image) { /* Exclude hero image from this specific size enforcement if it's large background */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* or contain, depending on context */
}

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

/* Ensure content area images are not smaller than 200px */
.page-cockfighting__content-area img,
.page-cockfighting__image-with-text img,
.page-cockfighting__feature-item img,
.page-cockfighting__tips-strategy-section .page-cockfighting__card img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow auto width while respecting min-width */
  height: auto; /* Allow auto height while respecting min-height */
}
/* Overwrite for specific elements where size is set to 200x200 in HTML */
.page-cockfighting__feature-icon {
  width: 200px;
  height: 200px;
}