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

/* body đã có padding-top: var(--header-offset) từ shared.css */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--background-color); /* Nền tối */
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhỏ hơn cho top, lớn hơn cho bottom */
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Tối ưu cho di động và desktop */
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color);
}

.page-cockfighting__section {
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-cockfighting__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: var(--text-contrast-fix);
}

.page-cockfighting__contrast-fix {
  color: #333333; /* Deep dark text for light backgrounds */
}

.page-cockfighting__text-contrast-fix {
  color: #333333;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: #333333;
}

.page-cockfighting__text-main {
  color: var(--text-main);
}

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

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-cockfighting__card--light-bg {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-cockfighting__card--light-bg .page-cockfighting__card-title {
  color: #333333;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-cockfighting__card--light-bg .page-cockfighting__card-description {
  color: #555555;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  display: block;
}

.page-cockfighting__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 40%;
}

.page-cockfighting__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 40%;
}

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

.page-cockfighting__list-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.page-cockfighting__light-bg .page-cockfighting__list-item {
  background-color: #f8f8f8;
  color: #555555;
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-cockfighting__light-bg .page-cockfighting__list-title {
  color: #333333;
}

.page-cockfighting__numbered-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  background-color: rgba(var(--primary-color), 0.1);
}

.page-cockfighting__light-bg .page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(var(--primary-color), 0.1);
}

.page-cockfighting__numbered-list .page-cockfighting__list-description {
  margin-top: 5px;
}

.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.page-cockfighting__promo-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.page-cockfighting__light-bg .page-cockfighting__promo-item {
  background-color: #f8f8f8;
  color: #555555;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__light-bg .page-cockfighting__faq-item {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--divider-color);
  user-select: none;
}

.page-cockfighting__light-bg .page-cockfighting__faq-question {
  color: #333333;
  border-bottom-color: #eee;
}

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

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-cockfighting__light-bg .page-cockfighting__faq-answer {
  color: #555555;
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__cta-final {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__image--right,
  .page-cockfighting__image--left {
    float: none;
    margin: 30px auto 20px;
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }

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

  .page-cockfighting__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__list-item,
  .page-cockfighting__promo-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__list-title {
    font-size: 1.2em;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-cockfighting__image {
    max-width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    float: none !important;
  }

  .page-cockfighting__numbered-list .page-cockfighting__list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-cockfighting__numbered-list .page-cockfighting__list-item::before {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
  }
}