/* style/download.css */
.page-download {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 20px 60px;
  overflow: hidden;
  background-color: #017439; /* Brand primary color */
}

.page-download__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.page-download__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-download__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-download__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom Register font color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
}

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

.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: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Body background */
}

.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: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-download__feature-text {
  color: #f0f0f0;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
}

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

.page-download__platform-card {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-download__platform-title {
  font-size: 2em;
  color: #FFFF00;
  text-align: center;
  margin-bottom: 25px;
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-download__step-item {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.page-download__step-item strong {
  color: #FFFF00;
}

.page-download__step-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00;
  font-weight: bold;
  font-size: 1.2em;
}

.page-download__btn-full-width {
  width: 100%;
  display: block;
  margin-top: 20px;
}

/* App Benefits Section */
.page-download__app-benefits-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description {
  color: #ffffff;
}

.page-download__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-download__benefits-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__benefits-item strong {
  color: #FFFF00;
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-description {
  color: #333333;
}

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

.page-download__security-text {
  text-align: left;
  max-width: 600px;
}

.page-download__security-subtitle {
  font-size: 1.8em;
  color: #017439; /* Brand primary color for subtitles */
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__security-text p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #555555;
}

.page-download__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  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: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #FFFF00; /* Yellow for toggle icon */
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg); /* Plus to X (minus) */
}

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

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

.page-download__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.7;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  text-align: center;
}

.page-download__cta-bottom-section .page-download__section-title,
.page-download__cta-bottom-section .page-download__section-description {
  color: #ffffff;
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.25em;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
}

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

  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  
  .page-download__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
}