/* style/download.css */

/* General styles for the download page content */
.page-download {
  background-color: #121212; /* Matches body background, ensures consistency */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: 36px;
  color: #FFD700; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Buttons */
.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: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-download__btn-primary {
  background-color: #FFD700; /* Primary brand color */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #121212;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Primary brand color for text */
  border: 2px solid #FFD700;
}

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-download__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

.page-download__btn-full-width {
  width: 100%;
  display: block;
}

.page-download__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  margin-top: 0;
}

.page-download__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-download__hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-download__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-download__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Intro Section */
.page-download__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

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

.page-download__feature-card {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-download__feature-card p {
  font-size: 16px;
  color: #cccccc;
}

/* How-to Section */
.page-download__how-to-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-download__download-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-download__download-method {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #121212;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__download-method--qr {
  flex-direction: column;
  text-align: center;
  padding: 50px 30px;
}

.page-download__method-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.page-download__method-content--reverse {
  flex-direction: row-reverse;
}

.page-download__method-title {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

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

.page-download__step-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__step-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

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

.page-download__method-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.page-download__qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.page-download__qr-image-wrapper {
  width: 250px;
  height: 250px;
  background-color: #ffffff; /* White background for QR code */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-download__qr-text {
  font-size: 16px;
  color: #f0f0f0;
  max-width: 600px;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-download__promotion-card {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-download__promotion-title {
  font-size: 22px;
  color: #8B0000; /* Auxiliary brand color for promotion titles */
  margin-bottom: 10px;
}

.page-download__promotion-card p {
  font-size: 15px;
  color: #cccccc;
}

.page-download__promotions-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-download__promotions-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

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

.page-download__security-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-download__security-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-download__security-list strong {
  color: #FFD700; /* Highlight strong text */
}

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

.page-download__security-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

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

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

/* FAQ容器样式 */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border: 1px solid #333333;
}

/* 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 20px;
  opacity: 0;
  color: #cccccc;
}

/* FAQ展开状态 - ☠️ Sử dụng!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 20px !important;
  opacity: 1;
  background: #222222; /* Slightly different background for expanded answer */
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-download__faq-question:hover {
  background: #2a2a2a;
}

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

/* Tiêu đề vấn đề kiểu dáng */
.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #FFD700; /* Primary brand color for questions */
}

/* Biểu tượng chuyển đổi */
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Primary brand color for toggle */
  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 chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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


/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  background-color: #8B0000; /* Auxiliary brand color for strong CTA */
  text-align: center;
}

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

.page-download__cta-section .page-download__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-download__cta-section .page-download__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 42px;
  }
  .page-download__hero-description {
    font-size: 18px;
  }
  .page-download__download-method {
    flex-direction: column;
    text-align: center;
  }
  .page-download__method-content {
    flex-direction: column;
  }
  .page-download__method-content--reverse {
    flex-direction: column; /* Revert to column for mobile */
  }
  .page-download__security-content {
    flex-direction: column;
    text-align: center;
  }
}