/* style/cockfighting.css */

/* Base Styles */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-cockfighting__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-cockfighting__section-title--white {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block--white {
  color: #f0f0f0;
}

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

.page-cockfighting__feature-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure contrast */
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-cockfighting__feature-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Video Section */
.page-cockfighting__video-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure video section has proper padding-top */
}

.page-cockfighting__video-wrapper {
  max-width: 900px;
  margin: 0 auto 40px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-cockfighting__video-link {
  display: block; /* Ensure the link covers the entire video area */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Make sure link is above video controls */
}

/* Card Grid for Types */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure contrast */
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 220px; /* Consistent height for cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #555555;
}

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

.page-cockfighting__step-item,
.page-cockfighting__tip-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  color: #333333;
  text-align: left;
}

.page-cockfighting__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting__step-title,
.page-cockfighting__tip-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__step-description,
.page-cockfighting__tip-description {
  font-size: 1em;
  color: #555555;
}

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

.page-cockfighting__promo-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-cockfighting__promo-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-cockfighting__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #EA7C07; /* Login color for action */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-cockfighting__promo-button:hover {
  background-color: #d46a00;
}


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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  color: #26A9E0;
}

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

.page-cockfighting__faq-heading {
  font-size: 1.2em;
  margin: 0;
  color: #26A9E0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Use !important as per requirement */
  padding: 15px 20px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some padding for paragraph */
}

/* Call to Action Buttons */
.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-cockfighting__btn-primary:hover {
  background-color: #1e8ec7;
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__cta-block {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-cockfighting__cta-final {
  background-color: #26A9E0;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  /* Images responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Image containers responsiveness */
  .page-cockfighting__feature-item,
  .page-cockfighting__card,
  .page-cockfighting__promo-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__container,
  .page-cockfighting__feature-grid,
  .page-cockfighting__card-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__video-section,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-block,
  .page-cockfighting__cta-buttons {
    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 */
  }

  /* Video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .page-cockfighting__video-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has proper padding-top on mobile */
  }

  /* FAQ */
  .page-cockfighting__faq-question {
    padding: 12px 15px;
  }
  .page-cockfighting__faq-heading {
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-section {
    height: 400px;
  }
}

/* Color contrast fixes (as per instruction) */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-cockfighting__light-bg {
  color: #333333; /* White background, dark text */
}

.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}