/* style/cockfighting.css */

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

.page-cockfighting {
  background-color: var(--page-bg-color); /* Body background is handled by shared.css var(--background-color) which is #08160F, this ensures consistency for main content */
  color: var(--text-main-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.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: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  /* No fixed font-size, rely on clamp for responsiveness if needed, but not explicitly required */
}

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

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

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

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

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(var(--gold-color), 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-text {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-cockfighting__btn-text:hover {
  color: var(--glow-color);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__content-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-cockfighting__feature-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  color: var(--text-secondary-color);
  font-size: 1em;
}

.page-cockfighting__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__step-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

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

.page-cockfighting__card {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  min-height: 200px; /* Ensure cards have some minimum height */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

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

.page-cockfighting__promotion-banner {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__promo-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-cockfighting__promo-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-cockfighting__promo-description {
  color: var(--text-secondary-color);
  font-size: 1em;
}

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

.page-cockfighting__tip-card {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-cockfighting__tip-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-cockfighting__tip-description {
  color: var(--text-secondary-color);
  font-size: 1em;
}

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

.page-cockfighting__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(var(--deep-green-color), 0.5);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  color: var(--text-secondary-color);
  font-size: 1em;
  line-height: 1.6;
}

.page-cockfighting__conclusion-section {
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }

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

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

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-content {
    padding: 20px;
  }

  .page-cockfighting__main-title {
    font-size: 2em;
  }

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

  .page-cockfighting__cta-buttons {
    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__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-cockfighting__paragraph {
    font-size: 1em;
  }

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

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset;
    min-height: unset;
  }
  
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__content-area,
  .page-cockfighting__intro-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__card,
  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-item,
  .page-cockfighting__tip-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__step-by-step,
  .page-cockfighting__card-grid,
  .page-cockfighting__promo-list,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-cockfighting__promotion-banner {
    padding-left: 0;
    padding-right: 0;
  }
}

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

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