.page-download {
    color: #333333; /* Dark text for default light body background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-download__hero-section {
    background-color: #003366; /* Primary brand color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-download__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-download__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFCC00; /* Secondary brand color for emphasis */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-download__btn {
    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, box-shadow 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.page-download__btn--primary {
    background-color: #FFCC00; /* Secondary brand color */
    color: #003366; /* Primary brand color */
    border: 2px solid #FFCC00;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.page-download__btn--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.4);
}

.page-download__btn--secondary {
    background-color: transparent;
    color: #FFCC00; /* Secondary brand color */
    border: 2px solid #FFCC00;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.1);
}

.page-download__btn--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.4);
}

.page-download__btn--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-download__section-title {
    font-size: 2.5em;
    color: #003366; /* Primary brand color */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-weight: bold;
}

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

.page-download__why-app-section,
.page-download__download-guide-section,
.page-download__pre-install-section,
.page-download__faq-section,
.page-download__cta-section {
    padding: 60px 0;
    border-bottom: 1px solid #eeeeee;
}

.page-download__why-app-section {
    background-color: #ffffff;
}
.page-download__download-guide-section {
    background-color: #f0f7ff; /* Light blue tint */
}
.page-download__pre-install-section {
    background-color: #ffffff;
}
.page-download__cta-section {
    background-color: #003366; /* Primary brand color */
    color: #ffffff;
    text-align: center;
    border-bottom: none;
}
.page-download__cta-section .page-download__section-title {
    color: #FFCC00;
}
.page-download__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}


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

.page-download__feature-item,
.page-download__note-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-item:hover,
.page-download__note-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-download__feature-icon,
.page-download__note-icon {
    width: 100%; /* Will be constrained by max-width */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* All content images must be at least 200px */
    min-height: 200px;
    max-width: 250px; /* Keep icons from being too large visually */
    max-height: 250px;
}

.page-download__feature-title,
.page-download__note-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__feature-description,
.page-download__note-description {
    font-size: 1em;
    color: #666666;
}

.page-download__method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-download__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.page-download__method-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__method-title {
    font-size: 2em;
    color: #003366;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-download__method-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-download__method-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    max-width: 450px;
}

.page-download__method-steps li {
    background-color: #e6f0ff; /* Light blue step background */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #003366;
    border-radius: 5px;
    font-size: 1.05em;
    color: #333333;
    transition: background-color 0.2s ease;
}

.page-download__method-steps li:last-child {
    margin-bottom: 0;
}

.page-download__method-steps li strong {
    color: #003366;
}

.page-download__web-access-note {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #555555;
}

.page-download__text-link {
    color: #003366;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

.page-download__text-link:hover {
    color: #FFCC00;
}

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

.page-download__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.page-download__faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: bold;
    color: #003366;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.page-download__faq-question:hover {
    background-color: #f5f5f5;
}

.page-download__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #FFCC00;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Changes + to X-like symbol */
}

.page-download__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #555555;
    line-height: 1.7;
    overflow: hidden;
}

.page-download__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.5em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__method-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset, assuming --header-offset is dynamic */
    }
    .page-download__hero-section {
        padding: 60px 15px;
    }
    .page-download__hero-title {
        font-size: 2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-intro {
        font-size: 1em;
    }
    .page-download__feature-grid,
    .page-download__notes-grid {
        grid-template-columns: 1fr;
    }
    .page-download__method-card {
        padding: 30px 20px;
    }
    .page-download__method-title {
        font-size: 1.8em;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-download__faq-toggle {
        right: 20px;
    }
    .page-download__faq-answer {
        padding: 0 20px 18px;
        font-size: 1em;
    }

    /* Mobile image overflow prevention */
    .page-download img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min-width even on mobile */
        min-height: 200px;
    }
    /* Specific overrides for smaller images if they exist, ensuring they meet min size */
    .page-download__feature-icon,
    .page-download__note-icon {
        width: 100%; /* will scale to max-width: 100% of parent */
        height: auto;
        max-width: 200px; /* Ensure they don't get too large, but still meet min 200px */
        max-height: 200px;
    }
}