/* 智能文字颜色选择器 - Sử dụng BEM naming rule */
.page-about__card,
.page-about__section,
.page-about__box {
  /* Hệ thống sẽ tự động phân tích độ sáng màu nền và chọn màu chữ tốt nhất */
}

/* Nguyên tắc tính toán độ sáng và chọn màu (Sử dụng BEM naming rule) */
.page-about__dark-bg {
  color: #FFF1E8; /* Nền tối với chữ sáng */
  background: #C61F1F; /* Sử dụng màu thương hiệu nhưng đảm bảo độ tương phản */
}

.page-about__light-bg {
  color: #140C0C; /* Nền sáng với chữ tối */
  background: #FFF1E8;
}

.page-about__medium-bg {
  /* Nền có độ sáng trung bình cần phân tích thông minh */
  color: #140C0C; /* Mặc định sử dụng chữ tối */
  background: #E53030;
}

/* Vùng nội dung chính - Ưu tiên cao nhất (Sử dụng BEM naming rule) */
.page-about__content-area,
.page-about__text-block {
  color: #FFF1E8; /* Đảm bảo dễ đọc trên hầu hết các nền */
  background: transparent; /* Nền trong suốt để hiển thị màu body */
}

/* Đoạn văn và mục danh sách trong vùng nội dung trang */
.page-about p,
.page-about li {
  color: #FFF1E8; /* Đảm bảo dễ đọc trên hầu hết các nền */
}

/* Thẻ và container - Lựa chọn nền thông minh (Sử dụng BEM naming rule) */
.page-about__card {
  background: #2A1212; /* Ưu tiên sử dụng nền tối để đảm bảo khả năng đọc */
  color: #FFF1E8;
  border: 1px solid #6A1E1E; /* Thêm viền để tăng khả năng đọc */
}

/* Xử lý đặc biệt cho vùng tối (Sử dụng BEM naming rule) */
.page-about__dark-section {
  background: #140C0C;
  color: #FFF1E8; /* Chữ trắng bắt buộc */
}

/* Đảm bảo độ tương phản chữ trên nút (Sử dụng BEM naming rule) */
.page-about__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8; /* Chữ nút luôn dùng màu trắng */
  border: 2px solid transparent;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #2A1212;
  color: #F3C54D; /* Sử dụng màu thương hiệu đảm bảo độ tương phản */
  border: 2px solid #F3C54D;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.page-about__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
}

/* 移动端增强可读性（使用BEM命名规则） */
@media (max-width: 768px) {
  .page-about {
    /* 移动端增加文字大小和行高 */
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__card {
    /* 移动端卡片增加内边距和阴影增强可读性 */
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

/* CSS for about.html */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Màu chữ chính cho toàn bộ trang */
  background-color: #140C0C; /* Màu nền chính của trang */
}

.page-about__hero-section {
  padding-top: 10px; /* Chỉ 10px để tránh double padding với body */
  position: relative;
  text-align: center;
  padding-bottom: 50px;
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Kích thước cố định cho hero image */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -250px auto 0; /* Đẩy nội dung lên trên ảnh */
  padding: 20px;
  background: rgba(42, 18, 18, 0.8); /* Nền tối bán trong suốt */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF1E8;
}

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

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

.page-about__intro-section,
.page-about__mission-section,
.page-about__values-section,
.page-about__achievements-section,
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5rem;
  color: #F3C54D;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #C61F1F;
}

.page-about__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-about__card-title {
  font-size: 1.8rem;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF1E8;
}

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

.page-about__value-item {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-heading {
  font-size: 1.5rem;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-about__achievement-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__achievement-item {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #FFF1E8;
  position: relative;
  padding-left: 30px;
}

.page-about__achievement-item::before {
  content: '✓';
  color: #F3C54D;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

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

  .page-about__hero-content {
    margin-top: -150px;
    padding: 15px;
  }

  .page-about__main-title {
    font-size: 2rem;
  }

  .page-about__hero-description {
    font-size: 0.95rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 2rem;
  }

  .page-about__text-block {
    font-size: 1rem;
  }

  .page-about__content-grid,
  .page-about__value-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__intro-section,
  .page-about__mission-section,
  .page-about__values-section,
  .page-about__achievements-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}