/* style/cockfighting.css */

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

/* Base Styles for .page-cockfighting */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--page-cockfighting-text-main); /* Ensure contrast with body background */
  background-color: var(--page-cockfighting-bg);
  line-height: 1.6;
}

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

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

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--page-cockfighting-gold);
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting__content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1em;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-block p {
  margin-bottom: 1em;
}

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

.page-cockfighting__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.page-cockfighting__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-cockfighting-glow);
  font-weight: bold;
}

.page-cockfighting__list-ordered {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 1.5em;
}

.page-cockfighting__list-ordered li {
  margin-bottom: 10px;
  color: var(--page-cockfighting-text-secondary);
}

/* Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: #ffffff; /* Ensure contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-gold);
  color: var(--page-cockfighting-bg);
  transform: translateY(-3px);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 0; /* Image will dictate height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-bg); /* Fallback */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px 60px;
  margin-top: -100px; /* Pull content up over the image slightly for visual flow */
  background-color: var(--page-cockfighting-card-bg); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.page-cockfighting__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  /* No fixed font-size, rely on clamp if needed, otherwise relative units */
  font-size: clamp(2.5em, 5vw, 3.8em);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Image Styling */
.page-cockfighting__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-cockfighting__image-center {
  display: block;
  margin: 40px auto 0;
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-cockfighting__promotion-card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--page-cockfighting-gold);
  margin-bottom: 10px;
}

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

.page-cockfighting__card-link {
  display: inline-block;
  color: var(--page-cockfighting-glow);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--page-cockfighting-glow);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-cockfighting__card-link:hover {
  color: var(--page-cockfighting-text-main);
  border-color: var(--page-cockfighting-text-main);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  border-radius: 10px;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -80px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
  .page-cockfighting__section-title {
    font-size: 2.4em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.6em;
  }
}

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

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

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

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em);
  }

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

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

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

  .page-cockfighting__sub-title {
    font-size: 1.4em;
  }

  .page-cockfighting__content-area,
  .page-cockfighting__faq-list {
    padding: 0 15px;
  }

  /* Responsive Images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__promotion-card,
  .page-cockfighting__promotion-grid,
  .page-cockfighting__image-full-width,
  .page-cockfighting__image-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Responsive Buttons */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__promotion-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-cockfighting__promotion-card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    height: 180px; /* Adjust for mobile */
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.6em, 8vw, 2.5em);
  }
  .page-cockfighting__hero-content {
    margin-top: -40px;
  }
}