.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background, #08160F); /* Page background */
}

/* General section styling */
.page-download__hero-section,
.page-download__why-download-section,
.page-download__download-guide-section,
.page-download__app-features-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-download__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-download__hero-content {
    position: relative; /* Ensure content is above any background effects if any */
    z-index: 2;
    margin-top: 40px; /* Space between image and content */
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-download__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-download-inline,
.page-download__btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    min-width: 200px; /* Ensure buttons are not too small */
}

.page-download__btn-primary, .page-download__btn-large {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Main text color for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover, .page-download__btn-large:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-download__btn-secondary {
    background: transparent;
    color: #F2FFF6;
    border: 2px solid var(--border, #2E7A4E); /* Border color */
}

.page-download__btn-secondary:hover {
    background: var(--border, #2E7A4E); /* Border color as background on hover */
    color: #F2FFF6;
    transform: translateY(-2px);
}

.page-download__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 30px;
    font-weight: 700;
}

.page-download__text-block {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Why Download Section */
.page-download__why-download-section {
    background-color: var(--background, #08160F);
}

.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: var(--card-bg, #11271B); /* Card Background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border, #2E7A4E);
}

.page-download__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px; /* Example: slightly rounded icons */
}

.page-download__card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

.page-download__feature-card p {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
}

/* Download Guide Section */
.page-download__download-guide-section {
    background-color: var(--deep-green, #0A4B2C); /* Use a darker green for this section */
}

.page-download__guide-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.page-download__guide-block:last-of-type {
    margin-bottom: 0;
}

.page-download__guide-title {
    font-size: clamp(1.5em, 3.5vw, 2.2em);
    color: var(--gold, #F2C14E); /* Gold color for guide titles */
    margin-bottom: 25px;
    font-weight: 700;
}

.page-download__guide-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.page-download__guide-steps {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

.page-download__guide-steps li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
    color: var(--text-secondary, #A7D9B8);
}

.page-download__guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--gold, #F2C14E);
    color: #11271B; /* Dark text for gold background */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.page-download__guide-steps li p {
    color: var(--text-main, #F2FFF6);
    margin: 0;
    font-size: 1.05em;
}

.page-download__qr-code-wrapper {
    flex-shrink: 0;
    text-align: center;
    background-color: #ffffff; /* White background for QR code */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
}

.page-download__qr-code {
    width: 250px; /* Fixed size for QR code */
    height: 250px;
    display: block;
    margin: 0 auto 15px auto;
    object-fit: contain;
}

.page-download__qr-caption {
    color: #333333; /* Dark text for white background */
    font-weight: 600;
    font-size: 1em;
}

/* App Features Section */
.page-download__app-features-section {
    background-color: var(--background, #08160F);
}

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

.page-download__feature-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border, #2E7A4E);
}

.page-download__feature-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Example: slightly rounded icons */
}

.page-download__feature-heading {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
}

.page-download__feature-item p {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
}

/* Security Section */
.page-download__security-section {
    background-color: var(--deep-green, #0A4B2C); /* Deep Green background */
    color: var(--text-main, #F2FFF6); /* Light text for dark background */
}

.page-download__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__security-list li {
    background-color: var(--card-bg, #11271B);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--divider, #1E3A2A);
}

.page-download__security-list li p {
    color: var(--text-main, #F2FFF6);
    font-size: 1.05em;
    margin: 0;
}

.page-download__security-list li strong {
    color: var(--gold, #F2C14E);
    font-weight: 700;
}

/* FAQ Section */
.page-download__faq-section {
    background-color: var(--background, #08160F);
}

.page-download__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-download__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-download__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-download__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Hover effect using border color */
}

.page-download__faq-qtext {
    flex-grow: 1;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold, #F2C14E);
    margin-left: 20px;
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
}

/* Call to Action Section */
.page-download__cta-section {
    background-color: var(--deep-green, #0A4B2C);
}

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

.page-download__text-small {
    margin-top: 30px;
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

.page-download__link-register {
    color: var(--gold, #F2C14E);
    text-decoration: none;
    font-weight: 600;
}

.page-download__link-register:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-download__hero-section,
    .page-download__why-download-section,
    .page-download__download-guide-section,
    .page-download__app-features-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-section {
        padding: 40px 15px;
    }

    .page-download__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-download__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-download__description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-download-inline,
    .page-download__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-download__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-download__text-block {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-download__features-grid,
    .page-download__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__guide-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-download__guide-block:nth-child(2) .page-download__guide-content {
        flex-direction: column-reverse; /* Reverse order for iOS guide on mobile */
    }

    .page-download__qr-code-wrapper {
        width: 100%;
        max-width: 300px; /* Limit QR code wrapper size */
        margin: 0 auto;
        padding: 15px;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-download__qr-code {
        width: 200px;
        height: 200px;
    }

    .page-download__security-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .page-download__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9em;
    }
    
    /* Mobile image responsiveness */
    .page-download img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-image-wrapper,
    .page-download__qr-code-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no overflow */
    }
    
    .page-download__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}