/* style/download.css */

/* Base styles for the page-download */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Header offset for the first content section */
.page-download__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden; /* For images to not spill out */
}

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

.page-download__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for emphasis, contrast with green background */
}

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

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__cta-buttons--center {
  justify-content: center;
}

.page-download__cta-button {
  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.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

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

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

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

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

.page-download__btn-full-width {
  width: 100%;
  max-width: 300px; /* Limit max width for full-width buttons */
  margin: 0 auto;
}

.page-download__btn-margin-top {
  margin-top: 30px;
}

.page-download__hero-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Global image min size */
  min-height: 200px;
  filter: none; /* Ensure no filter changes image color */
}

.page-download__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  color: #017439; /* Primary brand color for titles */
}

.page-download__dark-section .page-download__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-download__dark-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__features-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

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

.page-download__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 100%; /* Card image takes full width */
  max-width: 250px; /* Limit for aesthetic reasons in grid */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  min-width: 200px; /* Global image min size */
  min-height: 200px;
  filter: none; /* Ensure no filter changes image color */
}

.page-download__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-download__card-description {
  font-size: 1em;
  color: #555555;
}

.page-download__guide-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for guide background */
  color: #ffffff;
}

.page-download__installation-tabs {
  margin-top: 40px;
}

.page-download__tab-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-download__tab-button {
  background-color: #ffffff;
  color: #017439;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__tab-button:hover {
  background-color: #e0e0e0;
}

.page-download__tab-button--active {
  background-color: #C30808; /* Login/Register button color for active tab */
  color: #FFFF00; /* Login/Register font color */
}

.page-download__tab-button--active:hover {
  background-color: #e00b0b;
}

.page-download__tab-content {
  display: none;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__tab-content--active {
  display: block;
}

.page-download__tab-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #017439;
  text-align: center;
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  counter-reset: step-counter;
}

.page-download__guide-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  padding-left: 30px;
  position: relative;
  color: #555555;
}

.page-download__guide-list li strong {
  color: #017439;
}

.page-download__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #017439;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Global image min size */
  min-height: 200px;
  filter: none; /* Ensure no filter changes image color */
}

.page-download__text-content {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
  text-align: left;
}

.page-download__video-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px; /* Limit video width */
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicate clickability for JS video handler */
  min-width: 200px; /* Global video min size */
  min-height: 200px;
  filter: none; /* Ensure no filter changes video appearance */
}

.page-download__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-download__faq-list {
  margin-top: 40px;
}

.page-download__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333; /* Text for FAQ item */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  color: #017439;
  user-select: none; /* Prevent text selection on click */
}

.page-download__faq-item[open] > .page-download__faq-question {
  background-color: #e0e0e0;
  border-bottom: 1px solid #d0d0d0;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #C30808; /* Red for toggle icon */
}

.page-download__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0; /* Ensure clear separation */
}

.page-download__faq-answer p {
  margin-bottom: 10px;
}