/* style/cockfighting.css */
/* 
  Màu sắc chính: #017439
  Màu sắc phụ: #FFFFFF
  Màu nền body: #FFFFFF (từ shared.css, var(--secondary-color)) -> văn bản chính màu tối (#333333)
  Màu nút Đăng Ký/Đăng Nhập: Nền #C30808, Chữ #FFFF00
*/

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Văn bản chính màu tối vì nền body là trắng */
  background-color: #FFFFFF; /* Đảm bảo màu nền chính xác */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Chỉ padding-bottom, padding-top sẽ do shared quyết định */
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, #017439, #000000); /* Nền gradient cho hero */
  color: #ffffff; /* Chữ trắng trên nền tối */
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Chữ vàng nổi bật */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__btn-register {
  background: #C30808; /* Màu đỏ cho nút đăng ký */
  color: #FFFF00; /* Chữ vàng cho nút đăng ký */
  border: 2px solid #FFFF00;
}

.page-cockfighting__btn-register:hover {
  background: #a00606;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Màu tiêu đề chính */
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

.page-cockfighting__highlight {
  font-weight: bold;
  color: #017439;
}

.page-cockfighting__link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__link:hover {
  color: #004d26;
}

.page-cockfighting__brand-name {
  font-weight: bold;
  color: #017439;
}

/* Dark Background Specific Styles */
.page-cockfighting__dark-bg {
  background-color: #017439; /* Nền xanh lá cây đậm */
  color: #ffffff; /* Chữ trắng */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #FFFF00; /* Tiêu đề vàng trên nền xanh đậm */
}

.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__list {
  color: #f0f0f0;
}

.page-cockfighting__dark-bg .page-cockfighting__highlight {
  color: #FFFF00; /* Chữ vàng nổi bật trên nền xanh đậm */
}

.page-cockfighting__dark-bg .page-cockfighting__link {
  color: #FFFF00;
}

.page-cockfighting__dark-bg .page-cockfighting__link:hover {
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__brand-name {
  color: #FFFF00;
}

/* Image Styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 20px auto; /* Canh giữa hình ảnh nội dung */
}

/* Card Styles */
.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Đảm bảo chiều cao đồng nhất trong flex/grid */
  display: flex;
  flex-direction: column;
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  flex-grow: 1; /* Đảm bảo mô tả chiếm hết không gian */
}

.page-cockfighting__card img {
  width: 100%;
  height: 250px; /* Chiều cao cố định cho hình ảnh trong card */
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 15px 0;
}

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

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

.page-cockfighting__content-grid .page-cockfighting__grid-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__grid-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
}

.page-cockfighting__list.page-cockfighting__list-white li {
  color: #f0f0f0;
}

/* Safety Features */
.page-cockfighting__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  color: #017439;
}

/* Promotions Section */
.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: #ffffff;
  color: #333333;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  color: #017439;
}

.page-cockfighting__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  margin-top: 40px;
}

.page-cockfighting__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f0f0f0;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  border-radius: 8px 8px 0 0;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  flex-grow: 1;
}

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

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
  text-align: justify;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some padding to the bottom of the paragraph inside the answer */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px; /* Đảm bảo đủ lớn để hiển thị nội dung */
  padding: 20px;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}