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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, chỉ cần 10px cho hero */
  overflow: hidden;
  color: #fff;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
  color: #FFF3E6;
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-cockfighting__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #fff;
  border: 2px solid transparent;
}

.page-cockfighting__cta-button--primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: #FFA53A;
  color: #fff;
}

.page-cockfighting__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-cockfighting__cta-button--full-width {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFF3E6;
  text-align: justify;
}

.page-cockfighting__text-link {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

.page-cockfighting__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #FFA53A;
}

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

.page-cockfighting__feature-card, .page-cockfighting__step-card, .page-cockfighting__promo-card {
  background-color: #17191F;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF3E6;
}

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

.page-cockfighting__feature-title, .page-cockfighting__step-title, .page-cockfighting__promo-title {
  font-size: 1.4rem;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-description, .page-cockfighting__step-description, .page-cockfighting__promo-description {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-cockfighting__type-item {
  background-color: #17191F;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

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

.page-cockfighting__type-title {
  font-size: 1.3rem;
  color: #FF8C1A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__type-description {
  font-size: 0.95rem;
}

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

.page-cockfighting__rules-card {
  background-color: #17191F;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-cockfighting__rules-title {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__rules-description {
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-cockfighting__bet-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-cockfighting__bet-list li {
  margin-bottom: 5px;
}

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

.page-cockfighting__faq-item {
  background-color: #17191F;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FF8C1A;
  cursor: pointer;
  background-color: #17191F;
  border-bottom: 1px solid #A84F0C;
}

.page-cockfighting__faq-question:hover {
  background-color: #2a2d3a;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(180deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  color: #FFF3E6;
}

.page-cockfighting__cta-bottom-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__cta-bottom-section .page-cockfighting__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting__description {
    font-size: 1rem;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  .page-cockfighting__feature-grid, .page-cockfighting__steps-grid, .page-cockfighting__promo-grid, .page-cockfighting__type-list, .page-cockfighting__rules-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__how-to-join-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cockfighting__hero-content {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    background: #0D0E12; /* Solid background for mobile to ensure contrast */
    border-radius: 0;
    box-sizing: border-box;
  }

  .page-cockfighting__hero-image-wrapper {
    order: -1; /* Place image above text on mobile */
  }

  .page-cockfighting__hero-section {
    flex-direction: column;
    padding: 0; /* Remove top padding as content area will handle it */
  }
  
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  
  .page-cockfighting__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-cockfighting__feature-card, .page-cockfighting__step-card, .page-cockfighting__promo-card, .page-cockfighting__type-item, .page-cockfighting__rules-card {
    padding: 20px;
  }

  .page-cockfighting__feature-title, .page-cockfighting__step-title, .page-cockfighting__promo-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__rules-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensures correct display for details/summary */
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-cockfighting__faq-item summary {
  list-style: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: #2a2d3a; /* Slightly darker when open */
}

/* Fixed for text color contrast */
.page-cockfighting {
  color: #FFF3E6; /* Text Main */
}

.page-cockfighting__content-area p,
.page-cockfighting__content-area li {
  color: #FFF3E6; /* Ensure all paragraph and list text uses Text Main */
}

.page-cockfighting__feature-description,
.page-cockfighting__step-description,
.page-cockfighting__promo-description,
.page-cockfighting__type-description,
.page-cockfighting__rules-description {
  color: #FFF3E6;
}

.page-cockfighting__bet-list li {
  color: #FFF3E6;
}

.page-cockfighting__faq-answer p {
  color: #FFF3E6;
}

.page-cockfighting__dark-section {
  background-color: #0D0E12;
}

.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__promo-card,
.page-cockfighting__type-item,
.page-cockfighting__rules-card,
.page-cockfighting__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
}

.page-cockfighting__faq-question {
  border-bottom: 1px solid #A84F0C;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none;
}

.page-cockfighting__faq-question .page-cockfighting__faq-qtext {
  color: #FF8C1A;
}

.page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  color: #FFA53A;
}

.page-cockfighting__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6; /* Ensures white text on orange gradient */
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: #FFA53A;
  color: #FFF3E6;
}

.page-cockfighting__hero-content {
  background: rgba(13, 14, 18, 0.7); /* Darker overlay for text on hero image */
}