.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* Fixed Header Offset */
.page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-download__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

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

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjusted to only handle bottom padding here */
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width on mobile */
    box-sizing: border-box;
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px; /* Add padding to sides for content */
    box-sizing: border-box;
}

.page-download__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-download__download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-download {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    flex-grow: 1;
    text-align: center;
    max-width: 280px; /* Max width for individual buttons */
    min-width: 180px; /* Min width for individual buttons */
}

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

.page-download__btn-primary:hover {
    background: #005f2c;
    border-color: #005f2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific styling for login/register buttons if they were on this page, using custom colors */
.page-download__btn-login,
.page-download__btn-register {
    background: #C30808; /* Custom red color */
    color: #ffffff; /* White text for contrast, overriding #FFFF00 for WCAG AA */
    border: 2px solid #C30808;
}

.page-download__btn-login:hover,
.page-download__btn-register:hover {
    background: #a10707;
    border-color: #a10707;
}

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

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

.page-download__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary brand color */
}

.page-download__dark-bg .page-download__section-title {
    color: #ffffff; /* White text for titles on dark background */
}

.page-download__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-download__dark-bg .page-download__text-block {
    color: #f0f0f0;
}

.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: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-item img {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-download__feature-item p {
    color: #555555;
    font-size: 1em;
}

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

.page-download__guide-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__dark-bg .page-download__guide-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-download__dark-bg .page-download__guide-item p,
.page-download__dark-bg .page-download__guide-item li {
    color: #f0f0f0;
}

.page-download__dark-bg .page-download__guide-item a {
    color: #FFFF00; /* Link color on dark background */
}

.page-download__guide-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 25px;
}

.page-download__dark-bg .page-download__guide-title {
    color: #ffffff;
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left; /* Align list items to left */
}

.page-download__guide-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    counter-increment: list-item;
}

.page-download__guide-list li::before {
    content: counter(list-item) ". ";
    font-weight: bold;
    color: #017439;
    margin-right: 10px;
    flex-shrink: 0;
}
.page-download__dark-bg .page-download__guide-list li::before {
    color: #ffffff;
}

.page-download__guide-list p {
    margin: 0;
    display: inline;
}

.page-download__guide-item img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-download__qr-info {
    margin-top: 50px;
    font-size: 1.1em;
    text-align: center;
}

.page-download__qr-codes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-download__qr-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__qr-item img {
    width: 200px; /* QR code specific size */
    height: 200px;
    border: 5px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-download__dark-bg .page-download__qr-item img {
    border-color: #005f2c;
}

.page-download__qr-item p {
    margin-top: 15px;
    font-weight: bold;
    color: #333333;
}

.page-download__dark-bg .page-download__qr-item p {
    color: #ffffff;
}

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

.page-download__feature-list li {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #017439;
}

.page-download__feature-list-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-download__feature-list li p {
    color: #555555;
    font-size: 1em;
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-download__dark-bg .page-download__faq-item.active .page-download__faq-answer {
    background: rgba(255, 255, 255, 0.08);
}
.page-download__dark-bg .page-download__faq-item.active .page-download__faq-answer p {
    color: #f0f0f0;
}


.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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__dark-bg .page-download__faq-question {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-download__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}
.page-download__dark-bg .page-download__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-download__faq-question:active {
  background: #eeeeee;
}
.page-download__dark-bg .page-download__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}
.page-download__dark-bg .page-download__faq-question h3 {
    color: #ffffff;
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}
.page-download__dark-bg .page-download__faq-toggle {
    color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: #333;
}
.page-download__dark-bg .page-download__faq-item.active .page-download__faq-toggle {
    color: #ffffff;
}


.page-download__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 220px;
}

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

.page-download__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Global image styles */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no CSS filters are applied to images */
.page-download img {
    filter: none !important;
}