/* style/about.css */
.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure body background is white */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__dark-bg {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-about__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-image: linear-gradient(135deg, #017439, #004d2b); /* Darker gradient for hero background */
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for main title, high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__tagline {
  font-size: 22px;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 900px;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Limit hero image width */
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #017439);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #004d2b; /* Darker green on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-register {
  background: #C30808; /* Register red */
  color: #FFFF00; /* Yellow font */
}
.page-about__btn-register:hover {
  background: #a30606; /* Darker red on hover */
}

.page-about__btn-login {
  background: #C30808; /* Login red */
  color: #FFFF00; /* Yellow font */
  margin-left: 20px;
}
.page-about__btn-login:hover {
  background: #a30606; /* Darker red on hover */
}

.page-about__btn-download {
  background: #017439; /* Primary color for download */
  color: #ffffff;
  margin-left: 20px;
}
.page-about__btn-download:hover {
  background: #004d2b;
}


/* General Content Grid */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 17px;
}

/* Mission Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure dark text on white card */
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  width: 100%;
  max-width: 250px; /* Adjust size as needed */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color, #017439);
}

/* World of Cockfighting Section */
.page-about__world-of-cockfighting {
  padding: 80px 0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
}

/* Values Section */
.page-about__values {
  padding: 80px 0;
}

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

.page-about__value-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color, #017439);
}


/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__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;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* ⚠️ Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa nội dung bất kỳ */
  padding: 20px !important;
  opacity: 1;
  background: #e9f5ed; /* Light green background for answer */
  border-radius: 0 0 8px 8px;
}

/* Vấn đề kiểu dáng */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-about__faq-item.active .page-about__faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu dáng */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: inherit;
}

/* Chuyển đổi biểu tượng */
.page-about__faq-toggle {
  font-size: 28px; /* Biểu tượng lớn hơn */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #017439); /* Sử dụng màu chính */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Vùng chạm lớn hơn */
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #C30808; /* Màu đỏ khi hoạt động */
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}


/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__sub-title {
    font-size: 24px;
  }
  .page-about p, .page-about__section-description {
    font-size: 16px;
  }
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__world-of-cockfighting,
  .page-about__responsible-gaming,
  .page-about__values,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__tagline {
    font-size: 18px;
    margin-bottom: 30px;
  }
}