/* style/cockfighting.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-light); /* Base text color for dark body background */
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-cockfighting__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:uk 88, đá gà, sân đấu, hoàng hôn]') center center / cover no-repeat;
  padding: 100px 0;
  text-align: center;
  border-bottom: 5px solid var(--secondary-color);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Override for video-section, ensure content starts low enough */
}

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

.page-cockfighting__hero-section .page-cockfighting__container {
  position: relative;
  z-index: 2;
}

.page-cockfighting__main-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  font-weight: 900;
}

.page-cockfighting__description {
  font-size: 20px;
  color: var(--text-color-light);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-cockfighting__btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__intro-section, 
.page-cockfighting__guide-section, 
.page-cockfighting__faq-section {
  padding: 80px 0;
  background: #1a1a1a;
  color: var(--text-color-light);
}

.page-cockfighting__features-section, 
.page-cockfighting__tips-section, 
.page-cockfighting__cta-bottom-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-color-light);
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__text-block p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-cockfighting__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-cockfighting__feature-card:hover, .page-cockfighting__tip-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__feature-title, .page-cockfighting__tip-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-card p, .page-cockfighting__tip-card p {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__guide-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
}

.page-cockfighting__guide-step-title {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__guide-item p {
  font-size: 17px;
  color: #cccccc;
  line-height: 1.7;
}

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

.page-cockfighting__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%);
  border-top: 5px solid var(--primary-color);
}

.page-cockfighting__cta-bottom-content {
  max-width: 900px;
}

.page-cockfighting__cta-bottom-section .page-cockfighting__section-title {
  color: var(--text-color-light);
  margin-bottom: 25px;
}

.page-cockfighting__cta-bottom-section .page-cockfighting__section-title::after {
  background: var(--primary-color);
}

.page-cockfighting__cta-bottom-section p {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark);
  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;
  color: var(--primary-color);
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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;
  color: #cccccc;
  font-size: 16px;
  line-height: 1.7;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color-dark);
  border-radius: 0 0 8px 8px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 44px;
  }
  .page-cockfighting__description {
    font-size: 18px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__image-wrapper {
    order: -1;
  }
  .page-cockfighting__feature-title, .page-cockfighting__tip-title {
    font-size: 22px;
  }
  .page-cockfighting__guide-step-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__hero-section {
    padding: 80px 0;
    padding-top: 10px !important;
  }
  .page-cockfighting__main-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .page-cockfighting__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-cockfighting__cta-button {
    padding: 15px 30px;
    font-size: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-cockfighting__intro-section, 
  .page-cockfighting__guide-section, 
  .page-cockfighting__faq-section, 
  .page-cockfighting__features-section, 
  .page-cockfighting__tips-section, 
  .page-cockfighting__cta-bottom-section {
    padding: 60px 0;
  }
  .page-cockfighting__text-block p {
    font-size: 16px;
  }
  .page-cockfighting__image-wrapper {
    margin-bottom: 30px;
  }
  .page-cockfighting__feature-card, .page-cockfighting__tip-card, .page-cockfighting__guide-item {
    padding: 25px;
  }
  .page-cockfighting__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-cockfighting__feature-title, .page-cockfighting__tip-title {
    font-size: 20px;
  }
  .page-cockfighting__guide-step-title {
    font-size: 22px;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }
  .page-cockfighting__cta-bottom-section p {
    font-size: 18px;
  }

  /* Image and Video responsive adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting video, .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__image-wrapper, .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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 30px;
  }
  .page-cockfighting__description {
    font-size: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  .page-cockfighting__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-cockfighting__feature-title, .page-cockfighting__tip-title {
    font-size: 18px;
  }
  .page-cockfighting__guide-step-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
  }
  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }
}