/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Sử dụng màu văn bản chính */
  background: var(--bg-color); /* Sử dụng màu nền chính */
}

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

.page-download__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
  line-height: 1.3;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Nhỏ hơn var(--header-offset) */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #08160F 0%, #11271B 100%); /* Sử dụng màu nền tùy chỉnh */
  color: var(--text-main-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-download__hero-section .page-download__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__hero-content {
  flex: 1;
  min-width: 400px;
}

.page-download__hero-title {
  font-size: clamp(36px, 4vw, 52px); /* Sử dụng clamp cho H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--gold-color); /* Sử dụng màu vàng */
}

.page-download__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

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

.page-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Màu nút tùy chỉnh */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: transparent;
  color: var(--glow-color); /* Màu glow tùy chỉnh */
  border: 2px solid var(--glow-color);
}

.page-download__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-download__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

/* Features Section */
.page-download__features-section {
  padding: 60px 0;
  background: var(--bg-color); /* Màu nền tùy chỉnh */
  color: var(--text-main-color);
}

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

.page-download__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: var(--card-bg-color); /* Màu nền card tùy chỉnh */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color); /* Màu viền tùy chỉnh */
}

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

.page-download__feature-icon {
  width: 100%; /* Đảm bảo kích thước lớn */
  height: auto;
  max-width: 400px; /* Kích thước khuyến nghị */
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

.page-download__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--glow-color); /* Màu glow tùy chỉnh */
}

.page-download__feature-description {
  font-size: 16px;
  color: var(--text-secondary-color);
}

/* Instructions Section */
.page-download__instructions-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #11271B 0%, #08160F 100%); /* Màu nền tùy chỉnh */
  color: var(--text-main-color);
}

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

.page-download__instruction-step {
  padding: 30px;
  border-radius: 12px;
  background: var(--card-bg-color); /* Màu nền card tùy chỉnh */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color); /* Màu viền tùy chỉnh */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__step-number {
  width: 50px;
  height: 50px;
  background: var(--deep-green-color); /* Màu deep green tùy chỉnh */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-download__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--glow-color); /* Màu glow tùy chỉnh */
}

.page-download__step-description {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Để mô tả chiếm không gian còn lại */
}

.page-download__qr-code,
.page-download__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: auto; /* Đẩy hình ảnh xuống dưới cùng */
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

.page-download__download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 60px 0;
  background: var(--bg-color); /* Màu nền tùy chỉnh */
  color: var(--text-main-color);
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color); /* Màu viền tùy chỉnh */
  overflow: hidden;
  background: var(--card-bg-color); /* Màu nền card tùy chỉnh */
}

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #1e3a2a; /* Màu Divider hơi đậm */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--glow-color); /* Màu glow tùy chỉnh */
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color); /* Màu glow tùy chỉnh */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 39, 27, 0.7); /* Màu card bg hơi trong suốt */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary-color);
}

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--deep-green-color); /* Màu deep green tùy chỉnh */
  color: #ffffff;
}

.page-download__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__cta-section .page-download__section-title {
  color: var(--gold-color); /* Màu gold tùy chỉnh */
  margin-bottom: 20px;
}

.page-download__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

/* Base colors from shared.css / global variables */
:root {
  --bg-color: #08160F; /* Background */
  --card-bg-color: #11271B; /* Card BG */
  --text-main-color: #F2FFF6; /* Text Main */
  --text-secondary-color: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green-color: #0A4B2C; /* Deep Green */
}


/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }

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

  /* Hero Section */
  .page-download__hero-section {
    padding-top: 10px !important; /* Dùng 10px như đã yêu cầu */
    padding-bottom: 40px;
  }
}