/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared, but for context */
}

.page-download__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-download__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  max-width: 900px;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
}

.page-download__download-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-download__download-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: contain;
}

.page-download__hero-note {
  font-size: 1em;
  color: #cccccc;
}

.page-download__section {
  padding: 60px 20px;
}

.page-download__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__feature-card,
.page-download__step-card,
.page-download__requirement-card,
.page-download__security-item {
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-card.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-download__step-card.page-download__dark-bg,
.page-download__requirement-card.page-download__dark-bg,
.page-download__security-item.page-download__dark-bg {
  background-color: rgba(1, 116, 57, 0.8);
  color: #ffffff;
}

.page-download__feature-icon,
.page-download__security-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-download__feature-title,
.page-download__step-title,
.page-download__requirement-title,
.page-download__security-subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-download__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  background-color: #C30808; /* Login/Register button color */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-download__feature-text,
.page-download__step-text,
.page-download__security-text {
  font-size: 1em;
  color: inherit;
}

.page-download__features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-download__feature-item {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.page-download__feature-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.page-download__feature-thumb {
  width: 200px;
  height: 150px;
  min-width: 200px;
  min-height: 150px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-download__feature-content {
  flex: 1;
}

.page-download__feature-subtitle {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #333333;
}

.page-download__requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.page-download__requirement-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #ffffff;
}

.page-download__requirement-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Register/Login font color */
  font-weight: bold;
}

.page-download__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-download__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-item:last-child {
  border-bottom: none;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.9);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #017439;
}

.page-download__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 30px;
}

.page-download__faq-text {
  margin: 0;
  color: #f0f0f0;
}

.page-download__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff; /* Light background for CTA */
  color: #333333;
}

.page-download__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439;
}

.page-download__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-download__btn-secondary {
  background: #ffffff;
  color: #C30808;
  border: 2px solid #C30808;
}

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #a30606;
  border-color: #a30606;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.4em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__hero-section {
    padding: 60px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-options {
    flex-direction: column;
    gap: 20px;
  }
  .page-download__download-card {
    max-width: 100%;
    padding: 20px;
  }
  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }
  .page-download__section {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 1em;
  }
  .page-download__features-grid,
  .page-download__steps-grid,
  .page-download__requirements-grid,
  .page-download__security-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-thumb {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
  }
  .page-download__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .page-download__feature-content {
    width: 100%;
  }
  .page-download__feature-subtitle {
    font-size: 1.4em;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-title {
    font-size: 1.1em;
  }
  .page-download__faq-answer {
    padding: 15px 20px;
  }
  .page-download__cta-title {
    font-size: 2em;
  }
  .page-download__cta-description {
    font-size: 1em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Image/Video responsive rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}