/* style/cockfighting.css */

:root {
  --page-cockfighting-main-color: #11A84E;
  --page-cockfighting-accent-color: #22C768;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-border: #2E7A4E;
  --page-cockfighting-glow: #57E38D;
  --page-cockfighting-gold: #F2C14E;
  --page-cockfighting-divider: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-background); /* Default background from custom palette */
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed for visual impact */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-main-color);
  color: #ffffff;
}

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

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-small:hover {
  opacity: 0.9;
}

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-main);
  font-weight: bold;
}

.page-cockfighting__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--page-cockfighting-text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Default light background for contrast */
  color: #333333;
}

.page-cockfighting__text-main {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-secondary {
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--page-cockfighting-border);
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: #f5f5f5;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: #333333;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  flex-grow: 1;
}

.page-cockfighting__light-bg .page-cockfighting__card-text {
  color: #555555;
}

.page-cockfighting__step-card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-cockfighting-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-cockfighting__step-number {
  width: 50px;
  height: 50px;
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-text {
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-glow);
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__light-bg .page-cockfighting__faq-item {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__light-bg .page-cockfighting__faq-question {
  background-color: #e0e0e0;
  color: #333333;
  border-bottom: 1px solid #cccccc;
}

.page-cockfighting__light-bg .page-cockfighting__faq-qtext {
  color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__faq-toggle {
  color: var(--page-cockfighting-main-color);
}

.page-cockfighting__light-bg .page-cockfighting__faq-answer {
  background-color: #f5f5f5;
  color: #555555;
}

.page-cockfighting__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--page-cockfighting-light-bg);
}

/* --- Responsive Design --- */

/* Desktop specific adjustments */
@media (min-width: 769px) {
  .page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    margin-top: 0; /* Reset margin for absolute positioning */
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
  }
  .page-cockfighting__hero-section {
    min-height: 600px; /* Ensure hero section has a minimum height on desktop */
  }
  .page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .page-cockfighting__hero-image {
    height: 100%;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }

  .page-cockfighting__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

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

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-card {
    padding: 25px;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    font-size: 1em;
  }

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

  .page-cockfighting__cta-section {
    padding: 50px 15px;
  }
}

/* Ensure images are always responsive and not smaller than 200px */
.page-cockfighting img {
  min-width: 200px;
  min-height: 200px;
}

/* Override for images that are intentionally smaller, e.g. for step numbers or small icons that are not covered by the rule */
/* The min-size rule only applies to content images, not decorative elements like step numbers which are text based */
/* If any actual image is used for step numbers, it should still be >= 200px. */

/* No filter properties for images */
.page-cockfighting img {
  filter: none; 
}