.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page content, light for dark body bg */
  background-color: transparent; /* Body background handled by shared.css var(--color-deep-navy) */
}

/* Color variables based on provided palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* This is the body background color from shared.css */
}

/* General Section Styles */
.page-download__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.page-download__section:nth-of-type(odd) {
  background-color: var(--deep-navy); /* Match body background */
}

.page-download__section:nth-of-type(even) {
  background-color: var(--card-bg); /* Use card background for alternating sections */
}

.page-download__dark-section {
  background-color: var(--primary-color);
  color: var(--text-main);
}

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

.page-download__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--gold-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-download__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 60px;
  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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-navy);
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

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

.page-download__hero-content h1 {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-download__hero-content p {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button Styles */
.page-download__cta-button,
.page-download__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__cta-button:hover,
.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-download__benefits-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

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

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

.page-download__card-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__feature-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Download Guide Section */
.page-download__download-guide-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-download__platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--divider-color);
}

.page-download__tab-header {
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-download__tab-header:hover {
  color: var(--text-main);
  border-bottom-color: var(--secondary-color);
}

.page-download__tab-header.active {
  color: var(--text-main);
  border-bottom-color: var(--gold-color);
}

.page-download__tab-icon {
  font-size: 1.5em;
}

.page-download__tab-content {
  display: none;
  padding: 40px 0;
  text-align: left;
}

.page-download__tab-content.active {
  display: block;
}

.page-download__subsection-title {
  font-size: 2em;
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-download__download-options {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

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

.page-download__qr-code-box img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-download__qr-code-box p {
  color: var(--text-secondary);
  font-size: 1em;
}

.page-download__steps {
  flex-grow: 1;
  max-width: 600px;
}

.page-download__step-heading {
  font-size: 1.6em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-download__steps ol {
  list-style: decimal;
  margin-left: 20px;
  padding-left: 0;
  color: var(--text-secondary);
  font-size: 1em;
}

.page-download__steps ol li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-download__step-highlight {
  color: var(--text-main);
}

/* App Features Section */
.page-download__app-features-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--deep-navy);
}

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

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

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

.page-download__item-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__feature-item p {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Security Section */
.page-download__security-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-download__security-item h3 {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

/* FAQ Section */
.page-download__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--deep-navy);
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-secondary);
}

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: rgba(var(--primary-color), 0.5); /* Slightly lighter hover */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--primary-color);
}

.page-download__cta-bottom-section .page-download__section-title {
  color: var(--text-main);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-download__section-title {
    font-size: 2.5em;
  }
  .page-download__hero-content h1 {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-download__download-options {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__qr-code-box {
    max-width: 300px;
  }
  .page-download__steps {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-image img {
    border-radius: 4px;
  }
  .page-download__hero-content h1 {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-download__hero-content p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__cta-button,
  .page-download__btn-primary {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px;
  }

  .page-download__section {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-download__features-grid,
  .page-download__features-list,
  .page-download__security-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-card,
  .page-download__feature-item,
  .page-download__security-item {
    padding: 20px;
  }
  .page-download__feature-card img,
  .page-download__feature-item img {
    
  }
  .page-download__card-title,
  .page-download__item-title {
    font-size: 1.3em;
  }
  .page-download__subsection-title {
    font-size: 1.7em;
  }
  .page-download__qr-code-box {
    padding: 20px;
  }
  .page-download__qr-code-box img {
    max-width: 200px;
  }
  .page-download__steps ol {
    margin-left: 10px;
  }
  .page-download__steps ol li {
    font-size: 0.9em;
  }
  .page-download__platform-tabs {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-download__tab-header {
    padding: 10px 15px;
    font-size: 1em;
    flex-grow: 1;
    justify-content: center;
  }
  details.page-download__faq-item summary.page-download__faq-question { padding: 15px; }
  .page-download__faq-qtext { font-size: 1em; }
  .page-download__faq-toggle { font-size: 20px; width: 24px; }
  details.page-download__faq-item .page-download__faq-answer { padding: 0 15px 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__qr-code-box,
  .page-download__feature-card,
  .page-download__feature-item,
  .page-download__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__download-options {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-download__section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__qr-code-box {
    max-width: 100%;
  }
  .page-download__qr-code-box img {
    
  }
  .page-download__tab-header {
    font-size: 0.9em;
    padding: 10px;
  }
}