/* style/cockfighting.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-page: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Space for content below image */
  background-color: var(--background-page);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__main-title {
  color: var(--text-black);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

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

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

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

.page-cockfighting__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--background-page);
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__list-title {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-cockfighting__card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: var(--text-main);
}

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

.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list,
.page-cockfighting__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__numbered-list li,
.page-cockfighting__bullet-list li,
.page-cockfighting__security-features li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  transition: background-color 0.3s ease;
  color: #ffffff; /* For dark background list items */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__light-bg .page-cockfighting__numbered-list li,
.page-cockfighting__light-bg .page-cockfighting__bullet-list li {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-cockfighting__numbered-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 25px;
  top: 25px;
  width: 30px;
  height: 30px;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-cockfighting__numbered-list li .page-cockfighting__list-title {
  margin-left: 45px; /* Adjust for counter */
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit; /* Inherit from parent, adjusted by dark/light bg */
}

.page-cockfighting__list-description {
  font-size: 1em;
  color: inherit;
}

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

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-cockfighting__image-caption {
  font-style: italic;
  color: #666;
  margin-top: 15px;
  font-size: 0.9em;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.15em;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-cockfighting__cta-final-section {
  text-align: center;
  padding: 100px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Ensure all images are responsive */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content {
    margin-top: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-cockfighting__tagline {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__dark-bg,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
  }
  .page-cockfighting__numbered-list li,
  .page-cockfighting__bullet-list li,
  .page-cockfighting__security-features li {
    padding: 20px;
  }
  .page-cockfighting__numbered-list li .page-cockfighting__list-title {
    margin-left: 0;
    padding-left: 45px;
  }
  .page-cockfighting__numbered-list li::before {
    left: 20px;
    top: 20px;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__card,
  .page-cockfighting__image-block,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__card-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__security-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure content area images are not too small */
  .page-cockfighting__content-area img,
  .page-cockfighting__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Specific override for any img within main content to ensure min size */
  .page-cockfighting__introduction-section img,
  .page-cockfighting__types-section img,
  .page-cockfighting__guide-section img,
  .page-cockfighting__strategy-section img,
  .page-cockfighting__security-section img,
  .page-cockfighting__faq-section img,
  .page-cockfighting__cta-final-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Ensure color contrast for dark background elements */
.page-cockfighting__dark-bg {
  color: #ffffff;
}
.page-cockfighting__dark-bg .page-cockfighting__text-block {
  color: #f0f0f0;
}

/* Ensure color contrast for light background elements */
.page-cockfighting__light-bg {
  color: var(--text-main);
}
.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: var(--text-main);
}

/* Specific contrast adjustments if needed for specific elements */
.page-cockfighting__faq-question .page-cockfighting__faq-qtext {
  color: var(--primary-color);
}

/* Remove default details arrow */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}