/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --dark-bg-text-color: #FFFFFF;
  --login-button-color: #EA7C07;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-cockfighting__container--centered {
  text-align: center;
}

.page-cockfighting__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-cockfighting__section--intro,
.page-cockfighting__section--types,
.page-cockfighting__section--advantages,
.page-cockfighting__section--strategy,
.page-cockfighting__section--faq {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--dark-bg-text-color);
}

.page-cockfighting__heading {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
  font-weight: bold;
}

.page-cockfighting__dark-section .page-cockfighting__heading {
  color: var(--dark-bg-text-color);
}

.page-cockfighting__sub-heading {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cockfighting__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: var(--primary-color); /* Fallback/base color */
  color: var(--dark-bg-text-color);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--dark-bg-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--dark-bg-text-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using login color for primary CTA */
  color: var(--dark-bg-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
  background: #d66f00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--dark-bg-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-1px);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.page-cockfighting__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

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

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

.page-cockfighting__card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__card-text {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

/* Steps grid for 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 {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__dark-section .page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-bg-text-color);
}

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

.page-cockfighting__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--dark-bg-text-color);
}

.page-cockfighting__step-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-cockfighting__advantage-item {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  border-left: 5px solid var(--primary-color);
}

.page-cockfighting__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__advantage-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__advantage-text {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

/* Strategy Section */
.page-cockfighting__section--strategy .page-cockfighting__main-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__text-block {
  padding: 20px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-color);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color);
}

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

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-color);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

/* Final CTA Section */
.page-cockfighting__section--cta-final {
  background-color: var(--primary-color);
  color: var(--dark-bg-text-color);
  text-align: center;
  padding: 80px 20px;
}

.page-cockfighting__section--cta-final .page-cockfighting__heading {
  font-size: 40px;
  margin-bottom: 25px;
  color: var(--dark-bg-text-color);
}

.page-cockfighting__section--cta-final .page-cockfighting__paragraph {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--dark-bg-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 42px;
  }
  .page-cockfighting__heading {
    font-size: 32px;
  }
  .page-cockfighting__section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-image-wrapper {
    border-radius: 8px;
  }

  .page-cockfighting__hero-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-cockfighting__sub-heading {
    font-size: 20px;
  }

  .page-cockfighting__paragraph {
    font-size: 16px;
  }

  .page-cockfighting__grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__step-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section--strategy .page-cockfighting__main-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting__section--cta-final .page-cockfighting__heading {
    font-size: 32px;
  }

  .page-cockfighting__section--cta-final .page-cockfighting__paragraph {
    font-size: 16px;
  }
}

/* Ensure all content images in .page-cockfighting are responsive and not too small */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific rule for content area images to ensure minimum size */
.page-cockfighting__card-image,
.page-cockfighting__step-image,
.page-cockfighting__main-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override for images that are designed to be smaller but still meet minimum requirements */
/* This is a general safety net, specific images might have their own fixed dimensions if needed */
.page-cockfighting__card-image,
.page-cockfighting__step-image {
  min-width: 200px; /* Ensure images are not too small */
  min-height: 150px; /* Adjust height as needed, but maintain minimum */
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-cockfighting__hero-image-wrapper img,
  .page-cockfighting__card-image,
  .page-cockfighting__step-image,
  .page-cockfighting__main-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Remove min-width on mobile for full responsiveness */
    min-height: unset !important; /* Remove min-height on mobile for full responsiveness */
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__text-block,
  .page-cockfighting__advantage-item,
  .page-cockfighting__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}