/* style/about.css */
:root {
  --primary-color: #0A1C3C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark (#121212), so use light text */
  background-color: transparent; /* Inherit from body, or define if needed */
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

.page-about__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #060e1a 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
  font-size: 1.15em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-about__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-about__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__brand-section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__brand-container,
.page-about__faq-container,
.page-about__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__brand-title,
.page-about__faq-main-title,
.page-about__blog-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 50px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-about__brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__brand-item {
  background: var(--bg-dark-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-about__brand-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-about__brand-item-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__brand-item-text,
.page-about__brand-item-list p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-about__brand-item-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.page-about__brand-item-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 0.95em;
}

.page-about__brand-item-list li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-about__faq-main-title {
  color: var(--secondary-color);
}

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

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

/* 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;
  color: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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 !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly different background for expanded answer */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

.page-about__blog-section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__blog-title {
  color: var(--secondary-color);
}

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

.page-about__blog-item {
  background: var(--bg-dark-card);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__blog-link {
  text-decoration: none;
  display: block;
  color: inherit;
  padding-bottom: 20px; /* Padding inside the link for content */
}

.page-about__blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-about__blog-item-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 0 20px 10px 20px;
  line-height: 1.4;
}

.page-about__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  margin: 0 20px 15px 20px;
}

.page-about__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  display: block;
  margin: 0 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__brand-title,
  .page-about__faq-main-title,
  .page-about__blog-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 15px;
  }
  
  .page-about__hero-section {
    padding: 60px 15px;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__brand-section,
  .page-about__faq-section,
  .page-about__blog-section {
    padding: 40px 15px;
  }

  .page-about__brand-container,
  .page-about__faq-container,
  .page-about__blog-container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__brand-title,
  .page-about__faq-main-title,
  .page-about__blog-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__brand-grid,
  .page-about__blog-list {
    gap: 20px;
  }

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

  .page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-question h3 {
    font-size: 1em;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about__blog-item-title {
    font-size: 1.1em;
    margin: 0 15px 8px 15px;
  }

  .page-about__blog-item-excerpt,
  .page-about__blog-item-date {
    margin: 0 15px 10px 15px;
  }
  
  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__brand-image {
    height: auto; /* Allow auto height for mobile */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__brand-title,
  .page-about__faq-main-title,
  .page-about__blog-title {
    font-size: 1.5em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__brand-item-title {
    font-size: 1.3em;
  }
  .page-about__faq-question h3 {
    font-size: 0.95em;
  }
  .page-about__blog-item-title {
    font-size: 1em;
  }
}