.page-download {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #FFFFFF; /* Default background for main content */
    color: #333333; /* Default text color */
}

.page-download__hero-section {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    background-color: #017439; /* Primary color for hero section background */
    padding: 0 0 40px 0; /* Padding below content, image is above */
}

.page-download__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #017439; /* Ensure consistency */
}

.page-download__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 5; /* 1920x600 ratio */
    object-fit: cover;
    object-position: center;
    filter: none; /* No filter */
}

.page-download__hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #FFFFFF; /* Text on hero background */
}

.page-download__main-title {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* Adjusted for WCAG AA contrast with #017439 background */
}

.page-download__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-download__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
}

.page-download__button--download {
    background-color: #C30808; /* Register/Login color */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast with #C30808 background */
    border: 2px solid #C30808;
}

.page-download__button--download:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

.page-download__button--register {
    background-color: #017439; /* Primary color */
    color: #FFFFFF; /* Secondary color */
    border: 2px solid #017439;
}

.page-download__button--register:hover {
    background-color: #015f2e;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-download__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #017439; /* Primary color */
    position: relative;
    padding-bottom: 10px;
}

.page-download__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #C30808; /* Highlight color */
    border-radius: 2px;
}

.page-download__content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

/* Platforms Section */
.page-download__platform-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-download__platform-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.page-download__platform-item:hover {
    transform: translateY(-5px);
}

.page-download__platform-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    filter: none; /* No filter */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-download__platform-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-download__platform-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.page-download__button--download-ios,
.page-download__button--download-android,
.page-download__button--download-pc {
    background-color: #C30808;
    color: #FFFFFF; /* Adjusted for WCAG AA contrast with #C30808 background */
    border: 2px solid #C30808;
}

.page-download__button--download-ios:hover,
.page-download__button--download-android:hover,
.page-download__button--download-pc:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

/* Installation Steps */
.page-download__installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-download__step-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-download__step-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    filter: none; /* No filter */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-download__step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-download__step-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

/* Benefits Section */
.page-download__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-download__benefit-item {
    background-color: #f0fdf4; /* Light green background */
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #017439;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-download__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-download__benefit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* FAQ Section */
.page-download__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-download__faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.page-download__faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-download__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: #C30808;
    transition: transform 0.2s ease;
}

.page-download__faq-item.active .page-download__faq-question::after {
    content: '-';
}

.page-download__faq-answer {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    text-align: justify;
    padding-top: 5px;
}

/* Responsive Adjustments */
@media (max-width: 849px) {
    .page-download__hero-content {
        padding: 15px;
    }
    .page-download__main-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Adjust H1 for smaller screens */
    }
    .page-download__description {
        font-size: 1rem;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-download__button {
        width: 80%;
        max-width: 300px;
        padding: 10px 20px;
    }
    .page-download__section-title {
        font-size: 1.7rem;
    }
    .page-download__platform-list,
    .page-download__installation-steps,
    .page-download__benefits-list {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }
}

@media (max-width: 768px) {
    .page-download {
        padding-left: 12px;
        padding-right: 12px;
    }
    .page-download__hero-banner img,
    .page-download__platform-item img,
    .page-download__step-item img {
        max-width: 100%;
        height: auto;
    }
    /* Allow images to shrink below 200px if container is smaller on mobile */
    .page-download img {
        min-width: unset;
        min-height: unset;
    }
    /* Re-apply a soft minimum if needed, but allow full responsiveness */
    .page-download__platform-item img,
    .page-download__step-item img {
        width: 100%;
        max-width: 400px; /* Still limit max width for content images */
        min- /* A softer minimum for content images on mobile */
        min- /* A softer minimum for content images on mobile */
        object-fit: cover;
    }
}

/* Global image settings for content area */
.page-download img {
    object-fit: cover; /* Ensure images fill their space without distortion */
}