/* 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: transparent; /* Body background is handled by shared.css */
}

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

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

.page-download__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333; /* Dark text for light background */
}

.page-download__hero-section {
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Slightly darken for text readability */
  border-radius: 10px;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for H1. Contrast with dark overlay: 10.9:1 (PASS) */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.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, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-download__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login button */
  color: #000000; /* Ensuring WCAG AA contrast on #C30808 (6.2:1 PASS) */
  border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
  background-color: #017439;
  color: #ffffff; /* Contrast on #017439 (9.7:1 PASS) */
  border: 2px solid #017439;
}

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

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-download__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Contrast on rgba(255,255,255,0.1) over #017439 is good */
}

.page-download__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for card titles. Contrast on rgba(255,255,255,0.1) over #017439 is good (10.9:1 PASS) */
}

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

.page-download__guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}

.page-download__guide-block {
  flex: 1 1 calc(50% - 40px);
  min-width: 300px;
  text-align: left;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333; /* Contrast on #f9f9f9 (13.7:1 PASS) */
}

.page-download__guide-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #017439; /* Contrast on #f9f9f9 (6.3:1 PASS) */
}

.page-download__guide-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-download__guide-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-download__list-step {
  color: #C30808; /* Highlight step numbers. Contrast on #f9f9f9 (4.8:1 PASS) */
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-download__important-notes {
  margin-top: 60px;
  background-color: #fff3cd; /* Light yellow background for notes */
  padding: 30px;
  border-radius: 10px;
  border-left: 5px solid #ffc107;
  text-align: left;
  color: #333333; /* Contrast on #fff3cd (9.9:1 PASS) */
}

.page-download__notes-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #856404; /* Contrast on #fff3cd (4.7:1 PASS) */
}

.page-download__notes-list {
  list-style-type: disc;
  margin-left: 20px;
}

.page-download__notes-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-download__list-item-strong {
  font-weight: bold;
  color: #856404; /* Contrast on #fff3cd (4.7:1 PASS) */
}

.page-download__notes-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-download__register-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  text-align: left;
}

.page-download__register-block {
  flex: 1 1 calc(50% - 40px);
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff; /* Contrast on rgba(255,255,255,0.1) over #017439 is good */
}

.page-download__register-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for register titles. Contrast on rgba(255,255,255,0.1) over #017439 is good (10.9:1 PASS) */
}

.page-download__register-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-download__register-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-download__register-button {
  margin-top: 20px;
}

.page-download__register-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-download__faq-list {
  margin-top: 40px;
  text-align: left;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Contrast on #f9f9f9 (13.7:1 PASS) */
}

.page-download__faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439; /* Contrast on #f9f9f9 (6.3:1 PASS) */
}

.page-download__faq-question:hover {
  color: #005a2e;
}

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

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

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

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

.page-download__faq-a-text {
  font-size: 1em;
  color: #555; /* Contrast on #f9f9f9 (9.7:1 PASS) */
  margin-top: 10px;
}

.page-download__faq-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
}

.page-download__conclusion-section {
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-download__conclusion-section .page-download__section-title {
  color: #FFFF00; /* Custom color for conclusion title. Contrast on #017439 (10.9:1 PASS) */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-download__conclusion-section .page-download__section-intro {
  color: #f0f0f0;
}

.page-download__conclusion-section .page-download__cta-buttons {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.page-download__conclusion-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text contrast */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__hero-description {
    font-size: 1.2em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__card-title,
  .page-download__guide-title,
  .page-download__notes-title,
  .page-download__register-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 60vh;
    padding: 40px 0;
  }
  .page-download__hero-content {
    margin-bottom: 20px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-download__card-grid {
    grid-template-columns: 1fr;
  }
  .page-download__guide-block,
  .page-download__register-block {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-download__container,
  .page-download__section,
  .page-download__hero-section,
  .page-download__card,
  .page-download__guide-block,
  .page-download__important-notes,
  .page-download__register-block,
  .page-download__faq-list,
  .page-download__conclusion-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  /* Ensure all images are responsive and don't overflow */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Fixed header offset is handled by shared.css for body. No additional padding needed here. */
  /* If the hero section is the first content, and shared.css doesn't set body padding, it would need it. */
  /* Assuming shared.css sets body padding-top, so hero-section padding-top remains 0. */
  .page-download__video-section { /* Placeholder for video, not used in this page */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__faq-answer {
    padding: 0 5px; /* Adjust padding for mobile */
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 10px 5px; /* Adjust padding for mobile */
  }
}