/* style/cockfighting.css */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  background-color: #08160F; /* Nền chính */
  color: #F2FFF6; /* Màu chữ chính */
  line-height: 1.6;
  padding-bottom: 20px; /* Thêm padding dưới để tránh footer dính sát */
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ là khoảng cách nhỏ */
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  position: relative; /* Đảm bảo nội dung nằm trên ảnh nếu cần */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Đẩy nội dung lên một chút để gần ảnh hơn */
  background: rgba(17, 39, 27, 0.85); /* Card BG với độ trong suốt */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Sử dụng clamp cho kích thước H1 */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%; /* Đảm bảo button không tràn */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút chính */
  color: #F2FFF6;
  border: none;
}

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

.page-cockfighting__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F;
  border: 2px solid #2E7A4E;
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #0A4B2C; /* Deep Green */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-cockfighting__intro-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-final {
  padding: 80px 0;
  background-color: #08160F;
}

.page-cockfighting__dark-section {
  background-color: #11271B; /* Card BG */
  padding: 80px 0;
  color: #F2FFF6;
}

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

.page-cockfighting__text-block a {
  color: #2AD16F; /* Màu xanh lá cho link */
  text-decoration: none;
}

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

.page-cockfighting__image-content,
.page-cockfighting__image-feature,
.page-cockfighting__image-guide,
.page-cockfighting__image-event,
.page-cockfighting__image-faq {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Đảm bảo ảnh chiếm hết chiều rộng */
}

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

.page-cockfighting__advantage-card {
  background: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
  text-align: center;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  color: #A7D9B8;
  font-size: 0.95em;
}

.page-cockfighting__card-text a {
  color: #57E38D;
  text-decoration: none;
}

.page-cockfighting__card-text a:hover {
  text-decoration: underline;
}

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

.page-cockfighting__step-card {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  color: #A7D9B8;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__step-text a {
  color: #57E38D;
  text-decoration: none;
}

.page-cockfighting__step-text a:hover {
  text-decoration: underline;
}

.page-cockfighting__event-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__event-item,
.page-cockfighting__tips-item {
  background: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #F2FFF6;
  font-size: 1.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__event-item:last-child,
.page-cockfighting__tips-item:last-child {
  margin-bottom: 0;
}

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

.page-cockfighting__faq-item {
  background: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  display: block;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  position: relative;
  list-style: none;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  color: #A7D9B8;
  font-size: 1em;
  line-height: 1.7;
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

.page-cockfighting__faq-answer a {
  color: #57E38D;
  text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-cockfighting__cta-final .page-cockfighting__btn-primary {
  margin: 0 auto;
  display: block;
  width: fit-content;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
}

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

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

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

  .page-cockfighting__hero-description {
    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: 0.95em;
  }

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

  .page-cockfighting__intro-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__events-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 50px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

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

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

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }

  .page-cockfighting__main-title {
    font-size: 1.5em !important;
  }

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

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
  }
}