:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* body đã có padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-cockfighting__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-cockfighting__text-block li {
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-cockfighting__highlight {
  color: var(--gold);
  font-weight: bold;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--gold);
  border-color: var(--gold);
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 80px; /* Space from top */
  padding-bottom: 40px;
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-cta {
  font-size: 1.1em;
  padding: 15px 35px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--card-bg);
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for the video container */
  margin: 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__video-caption {
  margin-top: 20px;
}

.page-cockfighting__video-title {
  font-size: 1.8em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-cockfighting__video-description {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: var(--background);
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

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

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

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

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__feature-text {
  color: var(--text-secondary);
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: var(--background);
}

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

.page-cockfighting__step-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__step-cta {
  margin-top: auto;
  width: 100%;
}

/* Rules Section */
.page-cockfighting__rules-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

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

.page-cockfighting__rules-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 0;
  background-color: var(--background);
}

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

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

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

.page-cockfighting__tip-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

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

.page-cockfighting__promo-card {
  background-color: var(--background);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 1.4em;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promo-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__view-all-promos {
  font-size: 1.1em;
  padding: 15px 35px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid transparent; /* default */
  user-select: none;
  list-style: none; /* Remove default marker for details summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for details summary in webkit */
}

.page-cockfighting__faq-question:hover {
  background-color: var(--primary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-color: var(--border-color);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold);
}

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  font-size: 1.05em;
}

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

.page-cockfighting__faq-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  border-radius: 5px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
}

.page-cockfighting__faq-btn:hover {
  opacity: 0.9;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  text-align: center;
  border-top: 1px solid var(--divider);
}

.page-cockfighting__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-cockfighting__cta-text-block {
  max-width: 800px;
}

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

.page-cockfighting__cta-button {
  font-size: 1.1em;
  padding: 15px 35px;
  min-width: 200px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-cockfighting__hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .page-cockfighting__hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

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

  .page-cockfighting__image-block {
    order: 2;
  }

  .page-cockfighting__text-block {
    order: 1;
  }

  .page-cockfighting__cta-content {
    flex-direction: row;
    text-align: left;
  }

  .page-cockfighting__cta-image {
    margin-right: 40px;
    max-width: 40%;
  }

  .page-cockfighting__cta-text-block {
    text-align: left;
  }

  .page-cockfighting__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
  }

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

  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }

  .page-cockfighting__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    height: auto;
    min-height: unset;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-cockfighting__hero-cta {
    font-size: 1em;
    padding: 12px 20px;
  }

  /* Video Section */
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-bottom: 40px;
  }
  
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video-link,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__video-title {
    font-size: 1.5em;
  }

  /* Grids */
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-cockfighting__image-block {
    order: 1;
  }

  .page-cockfighting__text-block {
    order: 2;
  }

  /* Images & Videos general mobile rules */
  .page-cockfighting img,
  .page-cockfighting video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons general mobile rules */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting__cta-content {
    flex-direction: column;
  }

  .page-cockfighting__cta-image {
    margin: 0 auto 20px auto;
    max-width: 80%;
  }
}