:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-login-color: #EA7C07;
}

.page-download {
  font-family: Arial, sans-serif;
  color: var(--text-color-dark); /* Default text color for light background */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Body background is white */
}

/* 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: linear-gradient(135deg, var(--primary-color) 0%, #36C0F0 100%);
  color: var(--text-color-light);
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-download__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-bottom: 40px; /* Space between content and image on desktop */
}

.page-download__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  max-width: 900px; /* Prevents title from being too wide */
  margin-left: auto;
  margin-right: auto;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure buttons container takes full width */
}

.page-download__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Use login color for primary action */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure buttons are large enough */
}

.page-download__btn-primary:hover {
  background: #E06C00; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__hero-image {
  width: 100%;
  max-width: 800px; /* Max width for image within hero */
  margin-top: 20px; /* Space above image if content is above */
}

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

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

.page-download__section:nth-of-type(even) {
  background-color: #f9f9f9; /* Light background for alternating sections */
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width within max-width */
  box-sizing: border-box;
}

.page-download__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Why Download Section */
.page-download__why-download {
  background-color: var(--secondary-color);
}

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

.page-download__feature-item {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--secondary-color);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-download__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-download__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__feature-item p {
  font-size: 1em;
  color: #555555;
}

/* How To Download Section */
.page-download__how-to-download {
  background-color: #f9f9f9;
}

.page-download__platform-guide {
  margin-bottom: 60px;
}

.page-download__platform-title {
  font-size: 2em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--button-login-color);
}

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

.page-download__step-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

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

.page-download__step-item p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-download__step-item strong {
  color: var(--primary-color);
}

.page-download__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
  background: #1C8BC7; /* Slightly darker primary color on hover */
  border-color: #1C8BC7;
  transform: translateY(-2px);
}

/* App Features Section */
.page-download__app-features {
  background-color: var(--secondary-color);
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-download__feature-list li {
  background-color: #f0f8ff; /* Light blue background for list items */
  padding: 15px 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  color: #444444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-download__cta-bottom .page-download__btn-primary {
  background: var(--button-login-color);
  min-width: 250px;
}

.page-download__cta-bottom .page-download__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  min-width: 250px;
}

.page-download__cta-bottom .page-download__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

/* FAQ Section */
.page-download__faq {
  background-color: #f9f9f9;
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
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;
}
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: #f5f5f5;
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-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: #fdfdfd;
  border-radius: 0 0 8px 8px;
  text-align: left;
  color: #555555;
}
.page-download__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2.2em;
  }
  .page-download__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Mobile small top padding */
  }

  .page-download__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    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;
    min-width: unset; /* Remove min-width for mobile */
  }

  .page-download__hero-image {
    margin-top: 30px;
  }

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

  .page-download__section {
    padding: 50px 15px;
  }

  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-download__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-download__feature-title {
    font-size: 1.2em;
  }

  .page-download__platform-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-download__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-download__feature-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-download__feature-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-download__cta-bottom {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 1em;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }
  
  /* Ensure all images inside content areas are responsive */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure no filter on images */
.page-download img {
  filter: none !important;
}

/* Content area images minimum size check: */
.page-download__step-item img,
.page-download__hero-image img {
    min-width: 200px;
    min-height: 200px;
}