.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for consistency with shared.css default */
}

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

.page-download__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-download__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

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

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image size slightly within hero */
}

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

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #FFFFFF; /* White text on dark hero background */
  padding: 20px;
  border-radius: 10px;
}

.page-download__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* --- Intro Section --- */
.page-download__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

/* --- Why Download Section --- */
.page-download__why-download {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color background */
  color: #FFFFFF; /* White text on primary background */
}

.page-download__why-download .page-download__section-title {
  color: #FFFFFF;
}

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

.page-download__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for prominence */
}

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

/* --- How To Download Section --- */
.page-download__how-to-download {
  padding: 60px 0;
  background-color: #f5f5f5;
  color: #333333;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-download__platform-section {
  background: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__platform-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-download__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-list {
  list-style-type: decimal;
  margin-left: 20px;
  padding: 0;
  font-size: 1.1em;
  color: #555555;
}

.page-download__step-list li {
  margin-bottom: 15px;
}

.page-download__step-list strong {
  color: #017439;
}

/* --- App Features Section --- */
.page-download__app-features {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-download__app-features .page-download__section-title {
  color: #FFFFFF;
}

.page-download__feature-showcase {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-download__feature-showcase .page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-download__feature-list {
  flex: 2;
  list-style: none;
  padding: 0;
}

.page-download__feature-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__feature-list li:last-child {
  margin-bottom: 0;
}

.page-download__feature-heading {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

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

/* --- App Promotions Section --- */
.page-download__app-promotions {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-download__promo-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-download__promo-title {
  font-size: 1.5em;
  color: #C30808; /* Using register/login color for prominence */
  margin-bottom: 15px;
}

.page-download__promo-description {
  font-size: 1em;
  color: #555555;
}

/* --- Security & Support Section --- */
.page-download__security-support {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-download__security-support .page-download__section-title {
  color: #FFFFFF;
}

.page-download__security-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-download__security-content .page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-download__security-list {
  flex: 2;
  list-style: none;
  padding: 0;
}

.page-download__security-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__security-list li:last-child {
  margin-bottom: 0;
}

.page-download__security-heading {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-download__security-list p {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-download__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  color: #333333;
}

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

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

/* 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, opacity 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 mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #e6ffe6; /* Light green background for active answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-download__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-download__faq-item.active .page-download__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #017439;
}

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

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

/* 问题标题样式 */
.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #017439;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  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-download__faq-item.active .page-download__faq-toggle {
  color: #C30808;
  transform: rotate(45deg);
}

/* --- Final CTA Section --- */
.page-download__final-cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-download__final-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__final-cta-section .page-download__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-download__final-cta-section .page-download__text-block {
  color: #f0f0f0;
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
}

/* --- Global Image Styles --- */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}