:root {
    --color-primary: #2F6BFF;
    --color-secondary: #6FA3FF;
    --gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --color-card-bg: #FFFFFF;
    --color-background: #F4F7FB;
    --color-text-main: #1F2D3D;
    --color-text-black: #000000; /* Custom Color_1776249996415 */
    --color-border: #D6E2FF;
    --color-glow: #A5C4FF;
}

.page-download {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-card-bg); /* Use card background for hero section */
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for image */
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-download__hero-content {
    max-width: 800px;
}

.page-download__hero-title {
    color: var(--color-text-black);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* No fixed font-size, rely on clamp for responsiveness if needed, but for now just relative */
    /* font-size: clamp(2rem, 5vw, 3.5rem); */
}

.page-download__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

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

.page-download__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-card-bg); /* White text on buttons */
    text-decoration: none;
    background: var(--gradient-button);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px; /* Ensure buttons are large enough */
    height: 50px; /* Ensure consistent button height */
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-download__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

/* General Section Title */
.page-download__section-title {
    color: var(--color-text-black);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

.page-download__feature-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

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

.page-download__feature-title {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.page-download__feature-image-wrapper {
    grid-column: span 2; /* Occupy two columns for larger image */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__feature-image {
    width: 100%;
    max-width: 600px; /* Constrain image width */
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Guide Section */
.page-download__guide-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

.page-download__guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page-download__guide-platform {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-download__platform-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.page-download__qr-code-wrapper {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__qr-code {
    width: 250px; /* Explicit size, will be handled by media queries */
    height: 250px; /* Explicit size, will be handled by media queries */
    border: 5px solid var(--color-card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain; /* Ensure QR code is fully visible */
}

.page-download__qr-description {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-top: 10px;
}

.page-download__guide-steps {
    list-style-type: decimal;
    padding-left: 25px;
    text-align: left;
    color: var(--color-text-main);
}

.page-download__step-item {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-download__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-download__faq-item {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__faq-question {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-download__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* CTA Section */
.page-download__cta-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

.page-download__cta-section .page-download__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-download__cta-content {
    flex: 1;
    text-align: left;
}

.page-download__cta-title {
    color: var(--color-text-black);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-download__cta-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.page-download__button--cta {
    min-width: 250px;
}

.page-download__cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8rem;
    }
    .page-download__section-title {
        font-size: 2rem;
    }
    .page-download__cta-title {
        font-size: 1.8rem;
    }
    .page-download__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-download__feature-image-wrapper {
        grid-column: span 1; /* On smaller screens, allow it to take 1 column */
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 30px 15px;
    }
    .page-download__hero-title {
        font-size: 2.2rem;
    }
    .page-download__hero-description {
        font-size: 1rem;
    }
    .page-download__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        margin: 0 auto;
    }
    .page-download__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-download__guide-content {
        grid-template-columns: 1fr;
    }
    .page-download__cta-section .page-download__container {
        flex-direction: column;
        text-align: center;
    }
    .page-download__cta-content {
        text-align: center;
    }
    .page-download__cta-title {
        font-size: 1.6rem;
    }
    .page-download__cta-description {
        font-size: 1rem;
    }

    /* Mobile content image overflow prevention */
    .page-download img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure QR code is not too small but responsive */
    .page-download__qr-code {
        width: 200px; /* Minimum 200px */
        height: 200px;
    }
}

/* Ensure content area images are never smaller than 200px (CSS override check) */
.page-download__hero-image,
.page-download__feature-image,
.page-download__qr-code,
.page-download__cta-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: contain; /* For QR codes */
}

/* Specific override for QR code to ensure it's not stretched */
.page-download__qr-code {
    object-fit: cover; /* Use cover to fill space but maintain aspect ratio */
}