:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #121212;
  --background-light: #f8f8f8;
  --card-background-dark-mode: rgba(255, 255, 255, 0.08);
  --card-background-light-mode: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Ensure main content has top padding to clear fixed header */
.page-cockfighting__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-cockfighting__section-title--white {
  color: var(--text-color-dark-bg);
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-cockfighting__text-block--white {
  color: var(--text-color-dark-bg);
}

.page-cockfighting .highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:cockfighting:f8bet8,đágà,trựctuyến,banner,main]') no-repeat center center/cover;
  padding: 80px 20px;
  color: var(--text-color-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-container {
  max-width: 900px;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.page-cockfighting__main-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-color-light-bg); /* Black text on gold */
}

.page-cockfighting__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg); /* White text on dark red */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* General Section Styling */
.page-cockfighting__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
  padding: 60px 20px;
}

.page-cockfighting__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
  padding: 60px 20px;
}

.page-cockfighting__info-container,
.page-cockfighting__features-container,
.page-cockfighting__guide-container,
.page-cockfighting__advantages-container,
.page-cockfighting__tips-container,
.page-cockfighting__faq-container,
.page-cockfighting__conclusion-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.page-cockfighting__image--large {
  max-width: 90%;
}

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

.page-cockfighting__card {
  background-color: var(--card-background-light-mode); /* White background for cards on dark section */
  color: var(--text-color-light-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.7;
}

/* Guide Section */
.page-cockfighting__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--card-background-light-mode);
  color: var(--text-color-light-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-cockfighting__step-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Advantages Section */
.page-cockfighting__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__advantage-item {
  background-color: var(--card-background-dark-mode); /* Darker card background on dark section */
  color: var(--text-color-dark-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-cockfighting__advantage-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__advantage-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-cockfighting__advantage-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Tips Section */
.page-cockfighting__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-cockfighting__tip-item {
  background-color: var(--card-background-light-mode);
  color: var(--text-color-light-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary-color);
}

.page-cockfighting__tip-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-cockfighting__tip-description {
  font-size: 16px;
  line-height: 1.6;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark-mode);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  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.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-cockfighting__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.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(--text-color-dark-bg);
}

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  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 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color-dark-bg);
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
}

.page-cockfighting__conclusion-container {
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-cockfighting__conclusion-container .page-cockfighting__section-title {
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-cockfighting__conclusion-container .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 44px;
  }
  .page-cockfighting__hero-description {
    font-size: 18px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 100px; /* Mobile: Adjust based on shared header height */
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-cockfighting__hero-container {
    padding: 0 10px;
  }
  .page-cockfighting__main-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__dark-bg, .page-cockfighting__light-bg {
    padding: 40px 15px;
  }
  .page-cockfighting__info-container,
  .page-cockfighting__features-container,
  .page-cockfighting__guide-container,
  .page-cockfighting__advantages-container,
  .page-cockfighting__tips-container,
  .page-cockfighting__faq-container,
  .page-cockfighting__conclusion-container {
    padding: 0;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 15px;
  }

  .page-cockfighting__image {
    margin: 20px auto;
  }
  .page-cockfighting__card-icon {
    width: 90px;
    height: 90px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__card-description {
    font-size: 15px;
  }

  .page-cockfighting__step-number {
    font-size: 40px;
  }
  .page-cockfighting__step-title {
    font-size: 19px;
  }

  .page-cockfighting__advantage-title,
  .page-cockfighting__tip-title {
    font-size: 19px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }

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

  /* Ensure all containers for images/buttons are responsive */
  .page-cockfighting__hero-section,
  .page-cockfighting__info-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__hero-container,
  .page-cockfighting__info-container,
  .page-cockfighting__features-container,
  .page-cockfighting__guide-container,
  .page-cockfighting__advantages-container,
  .page-cockfighting__tips-container,
  .page-cockfighting__faq-container,
  .page-cockfighting__conclusion-container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__feature-grid,
  .page-cockfighting__step-grid,
  .page-cockfighting__advantage-list,
  .page-cockfighting__tip-list,
  .page-cockfighting__faq-list,
  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__advantage-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-cockfighting__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__cta-center {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__card, .page-cockfighting__step-item, .page-cockfighting__advantage-item, .page-cockfighting__tip-item {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px) !important;
  }

  .page-cockfighting__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 30px;
  }
  .page-cockfighting__hero-description {
    font-size: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  .page-cockfighting__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
}