/* style/cockfighting.css */

:root {
  --page-cockfighting-bg: #08160F;
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-button-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;
}

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

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Maintain aspect ratio for the image, text will be below */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast below */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  margin-top: 40px; /* Space between image and content */
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency for subtle overlay */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  color: var(--page-cockfighting-glow);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

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

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

.page-cockfighting__section {
  padding: 60px 20px;
  background-color: var(--page-cockfighting-bg);
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

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

.page-cockfighting__section-title {
  color: var(--page-cockfighting-gold);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting__ordered-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting__list-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter) ":";
  position: absolute;
  left: 25px;
  top: 25px;
  font-weight: bold;
  color: var(--page-cockfighting-glow);
  font-size: 1.2rem;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item h3 {
  padding-left: 90px; /* Adjust based on 'Bước X' text width */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__list-title {
  color: var(--page-cockfighting-text-main);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__list-description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1rem;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-cockfighting__feature-card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-title {
  color: var(--page-cockfighting-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.page-cockfighting__card-description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1rem;
}

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--page-cockfighting-text-main);
  font-size: 1.2rem;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-border);
  border-radius: 8px 8px 0 0;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.3); /* Lighter hover for dark background */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-cockfighting-glow);
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: 20px;
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting__description {
    font-size: 1rem;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__list-description,
  .page-cockfighting__card-description {
    font-size: 0.95rem;
  }

  .page-cockfighting__image {
    margin: 30px auto;
  }

  .page-cockfighting__list-item,
  .page-cockfighting__feature-card,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__ordered-list .page-cockfighting__list-item::before {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

  .page-cockfighting__ordered-list .page-cockfighting__list-item h3 {
    padding-left: 0;
  }

  .page-cockfighting__list-title,
  .page-cockfighting__card-title,
  .page-cockfighting__faq-question {
    font-size: 1.1rem;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness (if any) */
  .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__hero-section {
    padding-top: 10px !important;
  }

  /* Ensure all content containers have padding and max-width on mobile */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-cockfighting__description {
    font-size: 0.9rem;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 1rem;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .page-cockfighting__list-title,
  .page-cockfighting__card-title,
  .page-cockfighting__faq-question {
    font-size: 1rem;
  }
}