/* style/about.css */

/* Base Styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background is white */
}

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

/* Section Styling */
.page-about__section-title {
  font-size: 36px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__dark-section .page-about__section-title {
  color: #FFFFFF; /* White for dark backgrounds */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding as needed */
  background-color: #f0f0f0; /* Light background for hero */
  /* Fixed header offset */
  padding-top: var(--header-offset, 120px);
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 48px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Specific color for Register/Login type CTAs */
  color: #FFFF00; /* Specific font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #a30606; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
}

.page-about__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-about__text-block {
  flex: 1;
  font-size: 17px;
  color: #444444;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

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

.page-about__image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 600px; /* Constraint for content images */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-about__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #005f2f;
  text-decoration: underline;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text */
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles on dark background */
}

.page-about__value-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* Security Section - Similar to Mission but reversed grid */
.page-about__security-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f0f8f0; /* Light green tint */
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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 15px;
  opacity: 0;
  color: #444444;
}

/* FAQ展开状态 - 🚨 使用!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 mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 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: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

/* Tiêu đề câu hỏi kiểu dáng */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Increased font size for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #017439; /* Brand color for questions */
}

/* Biểu tượng chuyển đổi */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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 chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #017439; /* Brand color when active */
  transform: rotate(45deg); /* Tùy chọn: xoay để tạo hiệu ứng 'X' nếu dùng '-' */
}

/* CTA Section at the bottom */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-about__cta-content {
  max-width: 800px;
}

.page-about__cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column-reverse;
  }
  .page-about__image-wrapper img {
    max-width: 100%;
  }
  .page-about__text-block {
    text-align: center;
  }
  .page-about__text-block .page-about__link,
  .page-about__text-block .page-about__cta-button {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Header Offset */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  /* 🚨 Mobile Content Area Padding */
  .page-about__container,
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  /* 🚨 Mobile Image Adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper { /* Ensure image wrappers also adapt */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* 🚨 Mobile Button Adaptation */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to buttons */
    padding-right: 15px;
    font-size: 16px;
  }
  
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* FAQ mobile */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

/* General image styling for content sections to ensure minimum size and no small icons */
.page-about__content-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important; /* Strictly prohibit any filter effects */
}