.page-download__hero-section {
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Rely on shared body padding */
  position: relative;
  overflow: hidden;
}

.page-download__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-download__hero-content {
  flex: 1;
  text-align: left;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--secondary-color, #FFD700);
}

.page-download__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-download__hero-image-wrapper {
  flex: 0 0 auto;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-download__btn-primary {
  background-color: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-download__btn-secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-download__why-download-section,
.page-download__app-features-section,
.page-download__cta-section,
.page-download__faq-section {
  background-color: #121212; /* Body background color */
  color: #ffffff;
  padding: 60px 20px;
}

.page-download__how-to-install-section,
.page-download__security-section {
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color, #FFD700);
  font-weight: 700;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__content-block {
  flex: 1;
}

.page-download__image-container {
  flex: 0 0 auto;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Why Download Section */
.page-download__why-download-section .page-download__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary-color, #FFD700);
}

.page-download__feature-title {
  font-size: 1.4em;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* How to Install Section */
.page-download__installation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-download__installation-step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__card-title {
  font-size: 1.6em;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.page-download__step-list {
  list-style: decimal;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-download__step-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-download__image-center {
  text-align: center;
  margin-top: 30px;
}

/* App Features Section */
.page-download__feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__feature-card .page-download__card-title {
  color: var(--secondary-color, #FFD700);
  font-size: 1.3em;
  margin-bottom: 15px;
}

.page-download__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Security Section */
.page-download__security-section .page-download__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-download__security-text-block {
  flex: 1;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__security-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color, #FFD700);
  line-height: 1.6;
  color: #f0f0f0;
}

.page-download__list-strong {
  color: var(--secondary-color, #FFD700);
}

/* FAQ Section */
.page-download__faq-list {
  margin-top: 30px;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__faq-title {
  font-size: 1.2em;
  color: var(--secondary-color, #FFD700);
  margin: 0;
  font-weight: 600;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  color: var(--secondary-color, #FFD700);
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-download__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Call to Action Section */
.page-download__cta-section {
  text-align: center;
}

.page-download__cta-section .page-download__button-group {
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-download__hero-section .page-download__container,
  .page-download__why-download-section .page-download__container,
  .page-download__security-section .page-download__container,
  .page-download__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-download__hero-content,
  .page-download__hero-image-wrapper,
  .page-download__image-container,
  .page-download__security-text-block {
    width: 100%;
    text-align: center;
  }
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__button-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description,
  .page-download__section-description {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__hero-image-wrapper,
  .page-download__image-container {
    order: -1; /* Move image above text on mobile */
    margin-bottom: 30px;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__installation-step-card,
  .page-download__feature-card,
  .page-download__faq-item,
  .page-download__security-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-download__why-download-section .page-download__container,
  .page-download__security-section .page-download__container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__card-title {
    font-size: 1.4em;
  }
  .page-download__faq-title {
    font-size: 1.1em;
  }
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-install-section,
  .page-download__app-features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 40px 10px;
  }
  .page-download__hero-section .page-download__container,
  .page-download__container {
    padding: 0 10px;
  }
}