/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
  --bg-color-main: #FFFFFF;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-color-main);
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__list-item {
  font-size: 1.05em;
  margin-bottom: 10px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit hero image height */
}

.page-cockfighting__hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.25em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__about-section,
.page-cockfighting__how-to-play,
.page-cockfighting__features-section,
.page-cockfighting__video-section,
.page-cockfighting__strategies-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom {
  padding: 80px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__dark-section .page-cockfighting__paragraph,
.page-cockfighting__dark-section .page-cockfighting__list-item {
  color: var(--text-light);
}

.page-cockfighting__light-bg {
  background-color: var(--bg-color-main);
  color: var(--text-dark);
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item {
  counter-increment: list-counter;
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--button-login); /* Use specific color for steps */
  color: var(--text-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-cockfighting__unordered-list .page-cockfighting__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.page-cockfighting__unordered-list .page-cockfighting__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--button-login);
  font-size: 1.2em;
  font-weight: bold;
}

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

.page-cockfighting__feature-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

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

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

.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 8px;
  width: 100%; /* Desktop width: 100% */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

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

.page-cockfighting__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

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

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

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: var(--text-dark);
  border-top: 1px solid #eee;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-cockfighting__hero-description {
    font-size: 1.15em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section,
  .page-cockfighting__about-section,
  .page-cockfighting__how-to-play,
  .page-cockfighting__features-section,
  .page-cockfighting__video-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom {
    padding: 40px 0;
  }

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

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

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

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

  .page-cockfighting__paragraph,
  .page-cockfighting__list-item,
  .page-cockfighting__card-description {
    font-size: 0.95em !important;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    padding: 15px 20px;
  }

  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  /* Ensure all containers with images/videos/buttons adapt */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__feature-card {
    padding: 20px;
  }
  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 8vw, 2em) !important;
  }
  .page-cockfighting__hero-description {
    font-size: 0.9em !important;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em !important;
  }
  .page-cockfighting__paragraph,
  .page-cockfighting__list-item,
  .page-cockfighting__card-description {
    font-size: 0.9em !important;
  }
  .page-cockfighting__faq-item summary {
    font-size: 1em;
  }
}