/* style/cockfighting.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson Red */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly lighter for cards on dark bg */
  --border-color-dark: rgba(255, 255, 255, 0.15);
  --button-hover-primary: #e6c200;
  --button-hover-secondary: #b31032;
}

.page-content.page-cockfighting {
  color: var(--text-color-light);
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop padding to clear fixed header */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-cockfighting__hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 215, 0, 0.2)), url('[GALLERY:bg:đá gà,nổ hũ,hero_background]') no-repeat center center/cover;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-cockfighting__main-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__hero-description a:hover {
  color: var(--button-hover-primary);
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

.page-cockfighting__cta-button--primary:hover {
  background: var(--button-hover-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-cockfighting__cta-button--secondary:hover {
  background: var(--button-hover-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

.page-cockfighting__about-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__promo-section,
.page-cockfighting__get-started-section,
.page-cockfighting__faq-section,
.page-cockfighting__blog-section {
  padding: 60px 0;
}

.page-cockfighting__about-section p,
.page-cockfighting__betting-types-section p,
.page-cockfighting__tips-section p,
.page-cockfighting__promo-section p,
.page-cockfighting__get-started-section p,
.page-cockfighting__faq-section p,
.page-cockfighting__blog-section p {
  color: var(--text-color-light);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__about-section a,
.page-cockfighting__betting-types-section a,
.page-cockfighting__tips-section a,
.page-cockfighting__promo-section a,
.page-cockfighting__get-started-section a,
.page-cockfighting__faq-section a,
.page-cockfighting__blog-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__about-section a:hover,
.page-cockfighting__betting-types-section a:hover,
.page-cockfighting__tips-section a:hover,
.page-cockfighting__promo-section a:hover,
.page-cockfighting__get-started-section a:hover,
.page-cockfighting__faq-section a:hover,
.page-cockfighting__blog-section a:hover {
  color: var(--button-hover-primary);
}

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

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

.page-cockfighting__feature-item:hover,
.page-cockfighting__tip-card:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-item h3,
.page-cockfighting__tip-card h3,
.page-cockfighting__promo-card h3,
.page-cockfighting__step-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__feature-item p,
.page-cockfighting__tip-card p,
.page-cockfighting__promo-card p,
.page-cockfighting__step-item p {
  color: var(--text-color-light);
  font-size: 0.95em;
  line-height: 1.5;
  text-align: justify;
}

.page-cockfighting__feature-image,
.page-cockfighting__tip-image,
.page-cockfighting__promo-image {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small, but responsive */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__list li {
  background: var(--card-bg-dark);
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__list li h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__list li p {
  color: var(--text-color-light);
  font-size: 0.95em;
  line-height: 1.5;
  text-align: justify;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-small:hover {
  background: var(--button-hover-secondary);
  transform: translateY(-1px);
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2); /* Darker background for answer */
  color: var(--text-color-light);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color-light);
  text-align: justify;
}

/* Blog Section */
.page-cockfighting__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting__blog-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 20px;
}

.page-cockfighting__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-cockfighting__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 0 20px 10px;
  font-weight: bold;
}

.page-cockfighting__blog-item-excerpt {
  font-size: 0.9em;
  color: var(--text-color-light);
  margin: 0 20px 15px;
  line-height: 1.5;
  text-align: justify;
}

.page-cockfighting__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 3em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-content.page-cockfighting {
    padding-top: 100px !important; /* Mobile padding to clear fixed header */
    font-size: 15px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-section {
    padding: 60px 0;
  }

  .page-cockfighting__main-title {
    font-size: 2.2em;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-cockfighting__cta-buttons--centered {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-cockfighting__about-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promo-section,
  .page-cockfighting__get-started-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__blog-section {
    padding: 40px 0;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-cards,
  .page-cockfighting__steps-grid,
  .page-cockfighting__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-item,
  .page-cockfighting__tip-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__step-item,
  .page-cockfighting__blog-item {
    padding: 20px;
    border-radius: 8px;
  }
  
  .page-cockfighting__feature-item p,
  .page-cockfighting__tip-card p,
  .page-cockfighting__promo-card p,
  .page-cockfighting__step-item p,
  .page-cockfighting__list li p,
  .page-cockfighting__faq-answer p,
  .page-cockfighting__blog-item-excerpt {
    font-size: 0.9em;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__tip-image,
  .page-cockfighting__promo-image,
  .page-cockfighting__blog-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    border-radius: 6px;
  }
  
  .page-cockfighting__list li {
    padding: 20px;
    border-radius: 6px;
  }

  .page-cockfighting__list li h3 {
    font-size: 1.2em;
  }

  .page-cockfighting__btn-small {
    padding: 8px 20px;
    font-size: 0.85em;
    margin-top: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }

  .page-cockfighting__blog-item-title,
  .page-cockfighting__blog-item-excerpt,
  .page-cockfighting__blog-item-date {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .page-cockfighting__blog-item-title {
    font-size: 1.1em;
  }
}