.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-download__section {
  padding: 60px 0;
}

.page-download__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-download__dark-section .page-download__section-title {
  color: #ffffff;
}

.page-download__section-intro {
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

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

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 800px; /* Limit image width for better composition */
  margin-bottom: 30px;
}

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

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-download__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: #EA7C07; /* Màu login */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-download__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background: #e0f2f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Why Download Section */
.page-download__why-download {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-download__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  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.15);
}

.page-download__feature-title {
  font-size: 24px;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-download__feature-text {
  font-size: 16px;
  color: #555555;
}

/* How To Download Section */
.page-download__how-to-download {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-download__step-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__step-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-download__button-group {
  text-align: center;
  margin-top: 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Troubleshooting Section */
.page-download__troubleshooting {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-download__troubleshoot-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-download__troubleshoot-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__troubleshoot-text {
  font-size: 16px;
  color: #555555;
}

/* App Features Section */
.page-download__app-features {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-download__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 50%;
}

.page-download__features-list li {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.page-download__icon {
  font-size: 24px;
  color: #EA7C07; /* Màu login */
  margin-right: 15px;
  flex-shrink: 0;
  /* Placeholder icons, replace with actual icon font or SVG */
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.page-download__icon--game { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zM12 9.5c-1.38 0-2.5 1.12-2.5 2.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5-1.12-2.5-2.5-2.5z"/></svg>'); }
.page-download__icon--interface { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-4.14 3.36-7.5 7.5-7.5S20 7.86 20 12c0 4.08-3.05 7.44-7 7.93V12h-1z"/></svg>'); }
.page-download__icon--security { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h-1V10h-1v1.99H9V10H8v1.99H7V10H6v1.99H5v-7.38l7-3.11 7 3.11v7.38h-1V10h-1v1.99h-1V10h-1v1.99h-1V10h-1v1.99z"/></svg>'); }
.page-download__icon--support { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>'); }
.page-download__icon--promotion { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3S13 3.34 13 5c0 .35.07.69.18 1H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7 0c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm7 12H4V8h16v10z"/></svg>'); }
.page-download__icon--notification { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6V11c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>'); }

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

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  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: 32px;
  height: 32px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07;
}

.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 25px;
  opacity: 0;
  background: #fcfcfc;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.page-download__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin: 0;
}

/* Safety Tips Section */
.page-download__safety-tips {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-download__tip-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__tip-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__tip-text {
  font-size: 16px;
  color: #e0e0e0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 40px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 18px;
  }
  .page-download__cta-button {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-download__features-showcase {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__features-image,
  .page-download__features-list {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-title {
    font-size: 32px;
    line-height: 1.3;
  }
  .page-download__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-download__section-title {
    font-size: 28px;
  }
  .page-download__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__feature-item,
  .page-download__step-item,
  .page-download__troubleshoot-item,
  .page-download__tip-item {
    padding: 20px;
  }
  .page-download__feature-title,
  .page-download__step-title,
  .page-download__troubleshoot-title,
  .page-download__tip-title {
    font-size: 20px;
  }
  .page-download__feature-text,
  .page-download__step-text,
  .page-download__troubleshoot-text,
  .page-download__features-list li,
  .page-download__faq-answer p,
  .page-download__tip-text {
    font-size: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-image-wrapper,
  .page-download__features-showcase,
  .page-download__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile button responsiveness */
  .page-download__cta-button,
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-download__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  /* FAQ specific mobile styles */
  .page-download__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-download__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-download__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-download__faq-answer {
    padding: 0 15px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }
}