/* style/cockfighting.css */

/* --- Base Styles & Color Contrast --- */
.page-cockfighting {
  background-color: var(--background-color, #08160F); /* Fallback to custom color if shared doesn't define */
  color: var(--text-main, #F2FFF6); /* Main text color, light for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 1em;
  font-weight: bold;
}

.page-cockfighting p {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 1em;
}

.page-cockfighting__section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 2.8rem); /* H2 font size with clamp */
  color: var(--gold, #F2C14E);
  letter-spacing: 0.05em;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 font size with clamp */
  text-align: center;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and text content */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum height for hero image */
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

/* --- Buttons --- */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* For mobile responsiveness */
  max-width: 600px; /* Limit width on desktop */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for dark gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E); /* Gold text for secondary button */
  border: 2px solid var(--gold, #F2C14E);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: #08160F; /* Dark text on gold hover */
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 15px;
}

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

/* --- Section Styling --- */
.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__benefits-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--background-color, #08160F); /* Default dark background */
  color: var(--text-main, #F2FFF6);
}

/* --- Content Blocks --- */
.page-cockfighting__text-block {
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__image-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  min-height: 200px; /* Ensure minimum size */
}

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

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B); /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure consistent card height */
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1; /* Allow description to take available space */
}

/* --- Guide List --- */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__guide-step-title {
  font-size: 1.3rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

/* --- Benefits List --- */
.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__benefits-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__benefits-item-title {
  font-size: 1.4rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome's default marker */
}

.page-cockfighting__faq-item summary:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--gold, #F2C14E);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95rem;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting h1,
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-cockfighting__image-text-block {
    flex-direction: column;
  }

  .page-cockfighting__grid-cards,
  .page-cockfighting__benefits-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__card {
    padding: 25px;
    min-height: auto; /* Allow card height to adjust on mobile */
  }

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

  /* All containers with images/videos */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-text-block,
  .page-cockfighting__guide-item,
  .page-cockfighting__benefits-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific override for hero-section padding-top */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }
  .page-cockfighting__hero-image {
    min-height: 250px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .page-cockfighting__intro-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
}