/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần thêm tại đây */

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

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Mặc định cho toàn bộ trang */
  background-color: var(--background-color);
}

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

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

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Padding-top nhỏ, body đã xử lý offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Nền tối để chữ nổi bật */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-main-color);
  margin-bottom: 20px;
  max-width: 100%; /* Đảm bảo tiêu đề không bị tràn */
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Đảm bảo nút xuống dòng trên di động */
}

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

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Luôn dùng màu trắng cho nút chính */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.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: #ffffff;
}

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

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

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

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

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

.page-cockfighting__intro-section p {
  font-size: 1.1em;
}

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

.page-cockfighting__card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Đảm bảo các card có chiều cao bằng nhau */
  box-sizing: border-box;
  color: var(--text-main-color);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

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

.page-cockfighting__card-text {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  flex-grow: 1; /* Đẩy nội dung xuống cuối */
}

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

.page-cockfighting__cta-buttons--left {
  margin-top: 40px;
  justify-content: flex-start;
}

.page-cockfighting__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-cockfighting__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-main-color);
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  color: var(--text-secondary-color);
}

.page-cockfighting__list li strong {
  color: var(--text-main-color);
}

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

.page-cockfighting__advantage-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

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

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

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

.page-cockfighting__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}

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

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

.page-cockfighting__faq-qtext {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--text-main-color);
}

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

/* Reset default details/summary styles */
.page-cockfighting__faq-item > summary {
  list-style: none;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .page-cockfighting__flex-container {
    flex-direction: column;
  }
  .page-cockfighting__text-content, .page-cockfighting__image-content {
    flex: none;
    width: 100%;
  }
  .page-cockfighting__hero-content {
    padding: 30px 15px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Sử dụng clamp cho tiêu đề chính */
    margin-bottom: 15px;
  }

  .page-cockfighting__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-cockfighting__content-area {
    padding: 30px 15px;
  }

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

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

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__image-responsive {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-cockfighting__hero-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__cta-buttons--center,
  .page-cockfighting__cta-buttons--left {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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