/* style/download.css */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

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

/* 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); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #1A1A1A, #333333);
  overflow: hidden;
  border-bottom: 5px solid #FFD700;
}

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

.page-download__hero-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

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

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

.page-download__hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary color */
  color: #1A1A1A; /* Dark text for primary button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-download__cta-button:hover {
  background: #ffe066; /* Lighter gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-download__cta-button--ios {
  background: #ffffff;
  color: #1A1A1A;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.page-download__cta-button--ios:hover {
  background: #f0f0f0;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background: #1A1A1A; /* Auxiliary color */
  color: #f0f0f0;
}

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

.page-download__benefit-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.4);
}

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

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

.page-download__benefit-description {
  font-size: 16px;
  color: #cccccc;
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
  background: #222; /* Body background from shared.css */
  color: #f0f0f0;
}

.page-download__guide-platform {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-download__guide-subtitle {
  font-size: 30px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

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

.page-download__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-download__guide-steps ol {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-download__guide-steps li {
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 17px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-download__guide-steps li strong {
  color: #FFD700;
}

.page-download__qr-code-wrapper {
  text-align: center;
  min-width: 200px;
  max-width: 400px;
}

.page-download__qr-code-wrapper img {
  width: 100%;
  height: auto;
  border: 5px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

.page-download__qr-code-wrapper p {
  margin-top: 15px;
  font-size: 16px;
  color: #cccccc;
}

.page-download__cta-button--inline {
  margin-top: 10px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-download__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.4);
}

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

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

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

/* Call to Action Section Bottom */
.page-download__cta-section {
  padding: 80px 0;
  background: #222; /* Body background from shared.css */
  color: #f0f0f0;
  text-align: center;
}

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

.page-download__cta-button--register {
  background: #FFD700; /* Primary color */
  color: #1A1A1A; /* Dark text for primary button */
}

.page-download__cta-button--register:hover {
  background: #ffe066;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 40px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__guide-content {
    flex-direction: column;
  }
  .page-download__qr-code-wrapper {
    order: -1; /* QR code above steps on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 18px;
  }
  .page-download__hero-buttons,
  .page-download__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__cta-button,
  .page-download__cta-button--inline {
    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;
  }
  .page-download__container,
  .page-download__hero-container,
  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__features-section,
  .page-download__cta-section,
  .page-download__guide-platform,
  .page-download__benefits-grid,
  .page-download__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__section-title {
    font-size: 28px;
  }
  .page-download__section-intro {
    font-size: 16px;
  }
  .page-download__guide-subtitle {
    font-size: 24px;
  }
  .page-download__qr-code-wrapper {
    max-width: 300px;
  }
  .page-download__benefit-item,
  .page-download__feature-item {
    padding: 20px;
  }
  .page-download__benefit-title,
  .page-download__feature-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 28px;
  }
  .page-download__hero-description {
    font-size: 16px;
  }
  .page-download__section-title {
    font-size: 24px;
  }
  .page-download__section-intro {
    font-size: 15px;
  }
  .page-download__guide-platform {
    padding: 20px;
  }
  .page-download__guide-steps li {
    font-size: 15px;
  }
  .page-download__qr-code-wrapper p {
    font-size: 14px;
  }
}