/* style/download.css */
/* body đã có padding-top: var(--header-offset); trang này không cần thêm */
.page-download {
  background-color: #08160F; /* Nền tối theo custom color scheme */
  color: #F2FFF6; /* Màu chữ chính cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Nhỏ để không bị trùng với body padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  min-height: 400px; /* Đảm bảo hình ảnh đủ lớn */
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.8); /* Card B G with opacity */
  border-radius: 10px;
  margin-top: 100px;
}

.page-download__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-download__btn-secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Border color */
}

.page-download__btn-secondary:hover {
  transform: translateY(-3px);
  background: #11A84E; /* Main color */
}

.page-download__section-title {
  font-size: 2.2em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

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

.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__app-features-section,
.page-download__security-support-section,
.page-download__faq-section,
.page-download__final-cta-section {
  padding: 60px 0;
}

.page-download__why-download-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__feature-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-download__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

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

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

.page-download__step-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-download__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #2AD16F; /* Gradient start color */
  margin-bottom: 15px;
}

.page-download__step-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-download__step-text {
  color: #A7D9B8;
  font-size: 1em;
  margin-bottom: 15px;
}

.page-download__step-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-download__app-features-section {
  background-color: #0A4B2C; /* Deep Green */
}

.page-download__features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
}

.page-download__feature-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-download__feature-subtitle {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-download__feature-description {
  color: #A7D9B8;
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-download__info-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-download__info-title {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-download__info-text {
  color: #A7D9B8;
  font-size: 1em;
  margin-bottom: 20px;
}

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

.page-download__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color */
  border-bottom: 1px solid #2E7A4E; /* Border color */
}

.page-download__faq-question:hover {
  background-color: #22C768; /* Auxiliary color */
  color: #08160F;
}

.page-download__faq-item[open] > .page-download__faq-question {
  background-color: #22C768; /* Auxiliary color */
  color: #08160F;
  border-bottom: 1px solid transparent;
}

.page-download__faq-qtext {
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-download__faq-item[open] .page-download__faq-answer {
  max-height: 1000px; /* Arbitrarily large value for smooth transition */
  transition: max-height 0.3s ease-in;
}

.page-download__final-cta-section {
  text-align: center;
  background-color: #11A84E; /* Main color */
  padding: 80px 0;
}

.page-download__final-cta-section .page-download__section-title {
  color: #F2FFF6;
}

.page-download__final-cta-section .page-download__section-description {
  color: #F2FFF6;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.5em;
  }

  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-bottom: 40px;
  }

  .page-download__hero-content {
    padding: 30px 15px;
    margin-top: 50px;
  }

  .page-download__main-title {
    font-size: 2em;
  }

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__feature-card,
  .page-download__step-item,
  .page-download__info-card {
    padding: 20px;
  }

  .page-download__feature-title,
  .page-download__step-title,
  .page-download__info-title {
    font-size: 1.4em;
  }

  .page-download__feature-item {
    padding: 20px;
  }

  .page-download__feature-subtitle {
    font-size: 1.6em;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__security-support-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-download__hero-image {
    position: relative;
    height: 300px;
  }

  .page-download__hero-content {
    margin-top: 0;
  }

  .page-download__video-section {
    padding-top: 10px !important; /* body đã có --header-offset */
  }
}