/* style/download.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f;
  --bg-light: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

/* Base styles for the download page */
.page-download {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Dark body background (#0f0f0f) requires light text */
  line-height: 1.6;
  background-color: var(--bg-dark); /* Ensure consistency with body background */
}

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

/* Header spacing for fixed navigation bar */
.page-download__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section */
}

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
  color: inherit;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-download__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-download__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-download__btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-download__btn-primary:hover {
  background: #c23126;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-download__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-tertiary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-download__btn-tertiary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__features-section.page-download__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.page-download__feature-card {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__feature-card p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
}

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

.page-download__guide-section .page-download__section-title,
.page-download__guide-section .page-download__section-description {
  color: var(--text-light);
}

.page-download__platform-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-download__tab-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-download__tab-button--active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-download__tab-button--active:hover {
  background: #c23126;
  border-color: #c23126;
}

.page-download__tab-content {
  display: none;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__tab-content--active {
  display: block;
}

.page-download__guide-subtitle {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-light);
  text-align: center;
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  counter-reset: step-counter;
}

.page-download__guide-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
}

.page-download__guide-list li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--secondary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-download__guide-list li strong {
  color: var(--text-light);
}

.page-download__guide-list li a {
  color: #87CEEB; /* Lighter blue for links on dark background */
  text-decoration: underline;
}

.page-download__guide-list li a:hover {
  color: #ADD8E6;
}

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

.page-download__guide-cta {
  margin-top: 30px;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 40px;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
}

.page-download__benefits-section.page-download__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.page-download__benefit-item {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-download__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__benefit-item p {
  font-size: 16px;
  color: var(--text-dark);
}

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

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

.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-description {
  color: var(--text-light);
}

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

.page-download__security-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-download__security-item p {
  font-size: 16px;
  color: var(--text-light);
}

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

.page-download__faq-section.page-download__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-download__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: var(--primary-color);
}

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