/* style/download.css */
.page-download {
  color: #ffffff; /* Dark body background, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background from shared.css */
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117, #1a2a3a); /* Dark gradient for hero */
}

.page-download__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px; /* Slightly wider for hero */
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-download__hero-content {
  flex: 1;
  text-align: left;
  padding: 20px;
  color: #ffffff;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffc107;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Backgrounds for contrast */
.page-download__dark-bg {
  background-color: #0d1117;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #1a2a3a; /* A slightly lighter dark for contrast */
  color: #ffffff;
}
.page-download__light-bg .page-download__section-description {
  color: #f0f0f0;
}

/* Why Section */
.page-download__why-section {
  padding: 80px 0;
}

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

.page-download__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
}

.page-download__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #007bff; /* Main brand color for titles */
}

.page-download__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How-to Section */
.page-download__how-to-section {
  padding: 80px 0;
}

.page-download__platform-guide {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-download__guide-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__guide-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffc107;
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-list {
  list-style-type: decimal;
  padding-left: 25px;
  text-align: left;
  margin-bottom: 30px;
  color: #f0f0f0;
  width: 100%;
}

.page-download__guide-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* App Features Section */
.page-download__features-app-section {
  padding: 80px 0;
}

.page-download__features-app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__features-app-text {
  flex: 1;
  min-width: 300px;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__feature-list li {
  background: rgba(0, 123, 255, 0.1); /* Light blue background for list items */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.4;
  color: #ffffff;
}

.page-download__list-highlight {
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-download__features-app-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.page-download__features-app-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
}

.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-download__security-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-download__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-download__security-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.page-download__security-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* FAQ容器样式 */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(0, 123, 255, 0.1); /* Light background for answer in dark theme */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Vấn đề phong cách */
.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for question */
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-download__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #007bff;
}

.page-download__faq-question:active {
  background: rgba(255, 255, 255, 0.25);
}

/* Phong cách tiêu đề câu hỏi */
.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: #ffffff;
}

/* Biểu tượng chuyển đổi */
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107; /* Auxiliary color for toggle icon */
  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: 28px;
  height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: #007bff; /* Main brand color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect from '+' */
}

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

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-download__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-download__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-download__btn-secondary:hover {
  background-color: #ffc107;
  color: #0d1117; /* Dark text for light background */
  transform: translateY(-3px);
}