/* style/download.css */

/* Biến CSS */
:root {
  --primary-color: #0A2A5B;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* General page styles */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  padding-top: var(--header-offset, 120px);
}

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

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

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

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

/* Hero Section */
.page-download__hero-section {
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:bg:1920x1080:kubet,download,app_background,abstract_patterns,gold_blue]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-section .page-download__container {
  position: relative;
  z-index: 1;
}

.page-download__main-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.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;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-download__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 35px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-download__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-download__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-download__cta-button--secondary:hover {
  background-color: #08224a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__cta-button img {
  
  
  filter: none; /* Ensure no filter applied */
}

.page-download__hero-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  filter: none; /* Ensure no filter applied */
}

/* Why Section */
.page-download__why-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-download__why-section .page-download__section-title {
  color: var(--secondary-color);
}

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

.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-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-download__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none; /* Ensure no filter applied */
}

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

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

/* How-To Section */
.page-download__how-to-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-download__how-to-section .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__how-to-section .page-download__section-description {
  color: var(--text-light);
}

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

.page-download__guide-card {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  text-align: center;
}

.page-download__guide-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.page-download__guide-list {
  list-style-type: decimal;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
}

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

.page-download__qr-code-wrapper {
  margin: 30px auto;
  max-width: 300px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__qr-code {
  display: block;
  width: 100%;
  height: auto;
  filter: none; /* Ensure no filter applied */
}

.page-download__qr-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-download__cta-button--small {
  padding: 12px 25px;
  font-size: 18px;
  margin-top: 20px;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-download__app-features-section .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__app-features-section .page-download__section-description {
  color: var(--text-light);
}

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

.page-download__feature-card {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-download__feature-card-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download__feature-card p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-download__feature-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  filter: none; /* Ensure no filter applied */
  margin-top: auto; /* Push image to bottom if content above is shorter */
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-download__faq-section .page-download__section-title {
  color: var(--secondary-color);
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-download__faq-question:hover {
  background: #08224a;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-download__faq-question:active {
  background: #061c38;
}

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

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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 {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.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: #1a3a60; /* Slightly lighter than primary for contrast */
  color: var(--text-light);
  border-radius: 0 0 10px 10px;
  font-size: 16px;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Final CTA Section */
.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__cta-final-section .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__cta-final-section .page-download__section-description {
  color: var(--text-light);
}

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

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

  .page-download__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-download__platform-guide {
    grid-template-columns: 1fr;
  }

  .page-download__guide-card {
    padding: 30px;
  }

  .page-download__guide-title {
    font-size: 28px;
  }

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

@media (max-width: 768px) {
  .page-download {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-section,
  .page-download__why-section,
  .page-download__how-to-section,
  .page-download__app-features-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 60px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__main-title {
    font-size: 36px;
    line-height: 1.3;
  }

  .page-download__description {
    font-size: 18px;
    margin-bottom: 30px;
  }

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

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

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-download__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 25px;
    font-size: 18px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
  }

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

  .page-download__feature-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__feature-title {
    font-size: 20px;
  }

  .page-download__platform-guide {
    gap: 30px;
  }

  .page-download__guide-card {
    padding: 25px;
  }

  .page-download__guide-title {
    font-size: 24px;
  }

  .page-download__guide-list {
    font-size: 16px;
    margin-left: 15px;
  }

  .page-download__qr-code-wrapper {
    max-width: 250px;
  }

  .page-download__qr-code {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__features-list {
    grid-template-columns: 1fr;
  }

  .page-download__feature-card {
    padding: 25px;
  }

  .page-download__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__faq-item {
    border-radius: 8px;
  }

  .page-download__faq-question {
    padding: 15px 20px;
    border-radius: 8px;
  }

  .page-download__faq-question h3 {
    font-size: 16px;
  }

  .page-download__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-download__faq-answer {
    padding: 0 20px;
    border-radius: 0 0 8px 8px;
    font-size: 15px;
  }

  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 30px;
  }

  .page-download__description {
    font-size: 16px;
  }

  .page-download__section-title {
    font-size: 24px;
  }

  .page-download__cta-button {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-download__platform-guide {
    grid-template-columns: 1fr;
  }

  .page-download__guide-card {
    padding: 20px;
  }

  .page-download__guide-title {
    font-size: 22px;
  }
}

/* Ensure all images maintain original color */
.page-download img {
  filter: none !important;
}