/* 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; /* Default text color for the page, as body background is dark */
  background-color: #000000; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

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

.page-cockfighting__section-title.page-cockfighting__light-text {
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 0;
  padding-top: 0; /* Handled by main.page-cockfighting */
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

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

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

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

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

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

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

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

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
}

.page-cockfighting__btn-small:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-cockfighting__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: #333333;
}

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

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

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

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Features Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__feature-icon {
  width: 100%; /* Ensure image takes full width of card content area */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
}

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

.page-cockfighting__feature-description {
  color: #f0f0f0;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: #333333;
}

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

.page-cockfighting__step-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

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

/* Video Section */
.page-cockfighting__video-section {
  text-align: center;
  padding-top: 80px; /* Default desktop padding */
}

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

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
}

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: #333333;
}

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

.page-cockfighting__promotion-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-cockfighting__promotion-title {
  font-size: 1.6em;
  color: #017439;
  margin: 0 20px 10px;
}

.page-cockfighting__promotion-description {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Why Choose Us Section */
.page-cockfighting__why-choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__reason-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  height: 100%;
  box-sizing: border-box;
}

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

.page-cockfighting__reason-description {
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: #333333;
}

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

.page-cockfighting__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  color: #333333;
}

.page-cockfighting__faq-q-text {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.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 15px;
  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; /* Sufficiently large to show content */
  padding: 15px;
}

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

/* Final CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
}

.page-cockfighting__cta-description {
  color: #f0f0f0;
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

/* Image styles - No filter allowed */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  /* No filter property allowed */
}

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

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

  .page-cockfighting__image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

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

  .page-cockfighting__hero-section {
    height: 500px;
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting__btn-large {
    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;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-cockfighting__dark-bg,
  .page-cockfighting__light-bg {
    padding: 60px 0;
  }

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

  .page-cockfighting__features-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__why-choose-us-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__promotion-image {
    height: 200px;
  }

  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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 video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area images CSS size lower limit */
  .page-cockfighting__intro-section img,
  .page-cockfighting__features-section img,
  .page-cockfighting__how-to-play-section img,
  .page-cockfighting__promotions-section img,
  .page-cockfighting__why-choose-us-section img {
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
  }
}

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