/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
  background-color: var(--bg-color, #08160F); /* Fallback to custom dark green if --bg-color is not defined */
  color: var(--text-main, #F2FFF6); /* Main text color for dark backgrounds */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Section padding and alignment */
.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.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;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #08160F; /* Ensure dark background for hero */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Max-width and height are handled by img attributes and responsive CSS */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is on top */
  z-index: 2;
  margin-top: -100px; /* Adjust to slightly overlap the image without covering text */
  padding: 20px;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.5) 50%, rgba(8, 22, 15, 0) 100%);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-cockfighting__intro-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Titles */
.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow-color, #57E38D);
  border-radius: 2px;
}

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E); /* Using gold for sub-titles */
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: left;
}

/* Text blocks */
.page-cockfighting__text-block {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.2);
}

/* Image styling */
.page-cockfighting__image-wrapper {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Lists */
.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list-item {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
}

.page-cockfighting__list-item::before {
  content: '✔';
  color: var(--glow-color, #57E38D);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-cockfighting__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item {
  padding-left: 0;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
  content: none;
}

/* Grid for advantages section */
.page-cockfighting__grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6); /* Ensure card text is light */
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: rgba(17, 168, 78, 0.1); /* Slight brand color tint */
  user-select: none;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--glow-color, #57E38D);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Ensure details summary marker is hidden */
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-cockfighting__faq-item summary {
  list-style: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-cockfighting__hero-content {
    margin-top: -50px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__grid-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content {
    margin-top: -30px;
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-cockfighting__intro-description {
    font-size: 1rem;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.3rem;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__card-description,
  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
  }

  /* Force responsive images and containers */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  /* Buttons mobile responsiveness */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -10px;
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }
}

/* Color contrast enforcement */
.page-cockfighting__text-block a,
.page-cockfighting__list-item a {
  color: var(--glow-color, #57E38D); /* Ensure links are visible */
  text-decoration: underline;
}

.page-cockfighting__text-block a:hover,
.page-cockfighting__list-item a:hover {
  color: var(--gold-color, #F2C14E);
}