/* style/download-center.css */

/* Biến màu */
:root {
  --page-download-center-primary-bg: #0A0F18;
  --page-download-center-secondary-bg: #FFD700;
  --page-download-center-text-light: #FFFFFF;
  --page-download-center-text-dark: #0A0F18;
  --page-download-center-accent-red: #E53935;
  --page-download-center-border-color: rgba(255, 215, 0, 0.3);
  --page-download-center-card-bg: rgba(255, 255, 255, 0.05);
}

.page-download-center {
  font-family: 'Arial', sans-serif;
  color: var(--page-download-center-text-light);
  background-color: var(--page-download-center-primary-bg);
  line-height: 1.6;
}

.page-download-center__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-download-center__section-title {
  font-size: 2.8em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download-center__section-intro {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download-center__hero {
  background: linear-gradient(135deg, var(--page-download-center-primary-bg) 0%, #2a2d33 100%);
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page-download-center__hero-content {
  z-index: 1;
  max-width: 900px;
}

.page-download-center__hero-title {
  font-size: 3.5em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download-center__hero-description {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-download-center__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-download-center__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-download-center__btn--primary {
  background-color: var(--page-download-center-secondary-bg);
  color: var(--page-download-center-text-dark);
}

.page-download-center__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-download-center__btn--secondary {
  background-color: transparent;
  color: var(--page-download-center-secondary-bg);
  border: 2px solid var(--page-download-center-secondary-bg);
}

.page-download-center__btn--secondary:hover {
  background-color: var(--page-download-center-secondary-bg);
  color: var(--page-download-center-text-dark);
  transform: translateY(-3px);
}

.page-download-center__hero-image-wrapper {
  position: absolute;
  bottom: -50px; /* Adjust as needed */
  right: 0;
  width: 50%;
  max-width: 800px;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

.page-download-center__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Why Download Section */
.page-download-center__why-download {
  background-color: var(--page-download-center-primary-bg);
  padding-top: 80px;
}

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

.page-download-center__feature-item {
  background-color: var(--page-download-center-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-download-center-border-color);
}

.page-download-center__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-download-center__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--page-download-center-secondary-bg));
}

.page-download-center__feature-title {
  font-size: 1.5em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 15px;
}

.page-download-center__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

/* Download Guide Section */
.page-download-center__download-guide {
  background-color: #1a1e26;
  padding-top: 80px;
}

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

.page-download-center__download-card {
  background-color: var(--page-download-center-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-download-center-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download-center__card-title {
  font-size: 1.8em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 25px;
}

.page-download-center__card-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.95em;
}

.page-download-center__qr-code {
  width: 180px;
  height: 180px;
  border: 5px solid var(--page-download-center-secondary-bg);
  border-radius: 5px;
  margin-bottom: 25px;
  background-color: var(--page-download-center-text-light);
  padding: 5px;
}

.page-download-center__qr-code--pc {
  filter: invert(1) drop-shadow(0 0 5px var(--page-download-center-secondary-bg));
  background-color: transparent;
}

.page-download-center__btn--download {
  background-color: var(--page-download-center-accent-red);
  color: var(--page-download-center-text-light);
  margin-top: 20px;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
}

.page-download-center__btn--download:hover {
  background-color: #c42b2b;
  transform: translateY(-3px);
}

/* Installation Steps Section */
.page-download-center__installation-steps {
  background-color: var(--page-download-center-primary-bg);
  padding-top: 80px;
}

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

.page-download-center__installation-step {
  background-color: var(--page-download-center-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-download-center-border-color);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-download-center__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--page-download-center-secondary-bg);
  color: var(--page-download-center-text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-download-center__step-title {
  font-size: 1.4em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 15px;
}

.page-download-center__step-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

.page-download-center__cta-bottom {
  margin-top: 60px;
}

.page-download-center__cta-bottom p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-download-center__btn--contact {
  background-color: var(--page-download-center-secondary-bg);
  color: var(--page-download-center-text-dark);
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
}

.page-download-center__btn--contact:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* App Features Section */
.page-download-center__app-features {
  background-color: #1a1e26;
  padding-top: 80px;
}

.page-download-center__features-showcase {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.page-download-center__feature-detail {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-download-center__feature-detail--reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.page-download-center__feature-image {
  width: 45%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--page-download-center-secondary-bg);
}

.page-download-center__feature-text-content {
  width: 55%;
}

.page-download-center__feature-text-content h3 {
  font-size: 2em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 15px;
}

.page-download-center__feature-text-content p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.75);
}

/* Exclusive Offers Section */
.page-download-center__exclusive-offers {
  background-color: var(--page-download-center-primary-bg);
  padding-top: 80px;
}

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

.page-download-center__offer-item {
  background-color: var(--page-download-center-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-download-center-border-color);
}

.page-download-center__offer-title {
  font-size: 1.6em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 15px;
}

.page-download-center__offer-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.page-download-center__btn--claim {
  background-color: var(--page-download-center-accent-red);
  color: var(--page-download-center-text-light);
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
}

.page-download-center__btn--claim:hover {
  background-color: #c42b2b;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-download-center__faq {
  background-color: #1a1e26;
  padding-top: 80px;
}

.page-download-center__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-download-center__faq-item {
  background-color: var(--page-download-center-card-bg);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--page-download-center-border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-download-center__faq-question {
  font-size: 1.3em;
  color: var(--page-download-center-secondary-bg);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-download-center__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-download-center__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-download-center__faq-answer {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-download-center__faq-answer.active {
  max-height: 300px; /* Arbitrary large value to allow expansion */
  padding-top: 15px;
}

/* Related Pages Section */
.page-download-center__related-pages {
  background-color: var(--page-download-center-primary-bg);
  padding-top: 80px;
}

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

.page-download-center__detail-card {
  background-color: var(--page-download-center-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-download-center-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download-center__detail-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-download-center__detail-title a {
  color: var(--page-download-center-secondary-bg);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download-center__detail-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-download-center__detail-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-download-center__btn--detail {
  background-color: var(--page-download-center-accent-red);
  color: var(--page-download-center-text-light);
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
}

.page-download-center__btn--detail:hover {
  background-color: #c42b2b;
  transform: translateY(-2px);
}

/* Final CTA Section */
.page-download-center__final-cta {
  background-color: #0A0F18;
  padding: 80px 20px;
  border-top: 2px solid var(--page-download-center-secondary-bg);
}

.page-download-center__final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-download-center__hero {
    flex-direction: column;
    padding: 80px 20px;
  }

  .page-download-center__hero-title {
    font-size: 2.8em;
  }

  .page-download-center__hero-description {
    font-size: 1.1em;
  }

  .page-download-center__hero-image-wrapper {
    position: static;
    width: 80%;
    margin-top: 40px;
    opacity: 0.5;
  }

  .page-download-center__feature-detail, .page-download-center__feature-detail--reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-download-center__feature-image {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .page-download-center__feature-text-content {
    width: 100%;
  }

  .page-download-center__feature-text-content h3 {
    font-size: 1.8em;
  }

  .page-download-center__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-download-center__hero-title {
    font-size: 2.2em;
  }

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

  .page-download-center__hero-actions, .page-download-center__final-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-download-center__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-download-center__section {
    padding: 40px 15px;
  }

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

  .page-download-center__features-grid, .page-download-center__download-options, .page-download-center__installation-grid, .page-download-center__offers-grid, .page-download-center__detail-pages-grid {
    grid-template-columns: 1fr;
  }

  .page-download-center__qr-code {
    width: 150px;
    height: 150px;
  }

  .page-download-center__feature-image {
    width: 90%;
  }
}