/* style/download.css */

/* CSS Variables (from shared.css or defined here if needed, but prefer shared) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #26A9E0;
  --login-color: #EA7C07;
}

/* Base styles for the page content */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background */
}

/* Container for consistent padding and max-width */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-download__section-title--light {
  color: var(--text-light);
}

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

.page-download__section-intro--light {
  color: var(--text-light);
}

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0, #34B7F1); /* Gradient for visual appeal */
  overflow: hidden; /* Ensure content stays within bounds */
}

.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; /* Adjust max-width for the hero image */
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-download__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-download__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--login-color); /* Using login color for primary CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-download__cta-button:hover {
  background: #d86e06; /* Darken on hover */
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-download__cta-button--light {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-download__cta-button--light:hover {
  background: #f0f0f0;
  color: #2198cf;
}

/* Why App Section */
.page-download__why-app-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

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

.page-download__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-download__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Download Guide Section */
.page-download__guide-section {
  background-color: var(--background-dark);
  padding: 80px 0;
}

.page-download__steps-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-download__steps-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-download__steps-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-download__steps-list {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--text-light);
}

.page-download__step-item {
  margin-bottom: 30px;
}

.page-download__step-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-download__step-text {
  font-size: 17px;
  color: var(--text-light);
}

.page-download__cta-area {
  text-align: center;
  margin-top: 60px;
}

/* Registration Notes Section */
.page-download__registration-notes-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

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

.page-download__note-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__note-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-download__note-text {
  font-size: 16px;
  color: var(--text-dark);
}

.page-download__notes-image-container {
  text-align: center;
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-download__notes-image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* App Features Section */
.page-download__features-section {
  background-color: var(--background-dark);
  padding: 80px 0;
}

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

.page-download__feature-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
}

.page-download__feature-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-download__feature-card-text {
  font-size: 16px;
  color: var(--text-light);
}

.page-download__app-features-image {
  text-align: center;
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-download__app-features-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Troubleshooting Section */
.page-download__troubleshooting-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

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

.page-download__troubleshooting-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__troubleshooting-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-download__troubleshooting-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* FAQ Section */
.page-download__faq-section {
  background-color: var(--background-dark);
  padding: 80px 0;
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-download__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-download__faq-question:active {
  background: #eeeeee;
}

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: var(--login-color);
  transform: rotate(45deg); /* Use rotate for '-' effect */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* Ensure content can fully expand */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Final CTA Section */
.page-download__cta-final-section {
  background-color: var(--background-light);
  padding: 80px 0;
  text-align: center;
}

.page-download__cta-button--final {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__hero-title {
    font-size: 42px;
  }
  .page-download__hero-description {
    font-size: 20px;
  }
  .page-download__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-download__steps-content {
    flex-direction: column;
  }
  .page-download__steps-image, .page-download__steps-list {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 30px 15px;
  }
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
  }
  .page-download__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-download__hero-description {
    font-size: 18px;
    margin-bottom: 25px;
  }
  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-download__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-download__feature-grid, .page-download__notes-grid, .page-download__features-app-grid, .page-download__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
    font-size: 18px;
  }
  .page-download__steps-image, .page-download__notes-image-container, .page-download__app-features-image {
    border-radius: 8px;
  }
  .page-download__steps-image img, .page-download__notes-image-container img, .page-download__app-features-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-question h3 {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }
  .page-download__feature-item, .page-download__note-item, .page-download__feature-card, .page-download__troubleshooting-item {
    padding: 20px;
  }
}