.page-download {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #100224; /* Dark background */
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif; /* Example font */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, then row for desktop */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #017439; /* Primary color for hero background */
    position: relative;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* For responsive image */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-download__hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-download__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 30px;
    color: #E0E0E0;
}

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

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

.page-download__btn--primary {
    background: linear-gradient(90deg, #ff9500, #ff5e3a); /* Orange-red gradient */
    color: #FFFFFF;
    border: none;
}

.page-download__btn--primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-download__btn--secondary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-download__btn--secondary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Section Titles */
.page-download__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFFFF;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 60px 0;
    background-color: #1a0a33; /* Slightly lighter dark background */
}

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

.page-download__step-card {
    background-color: #210d40;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-download__step-card:hover {
    transform: translateY(-5px);
}

.page-download__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff9500;
    margin-bottom: 15px;
    display: block;
}

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

.page-download__step-description {
    font-size: 1rem;
    color: #E0E0E0;
    flex-grow: 1; /* Make description take available space */
}

.page-download__qr-code,
.page-download__installation-icon,
.page-download__login-icon {
    width: 250px; /* Min size 200px, 250px is good */
    height: 250px;
    object-fit: contain;
    margin-top: 20px;
    max-width: 100%; /* Ensure responsive on smaller screens */
    height: auto;
    display: block;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
    background-color: #100224;
}

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

.page-download__feature-card {
    background-color: #210d40;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-download__feature-icon {
    width: 300px; /* Min size 200px, 300px is good */
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    max-width: 100%; /* Ensure responsive */
    height: auto;
    display: block;
}

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

.page-download__feature-description {
    font-size: 0.95rem;
    color: #E0E0E0;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0 80px;
    background-color: #1a0a33;
}

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

.page-download__faq-item {
    background-color: #210d40;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ff9500; /* Highlight question */
    margin-bottom: 10px;
    cursor: pointer; /* Indicate clickable */
}

.page-download__faq-answer {
    font-size: 1rem;
    color: #E0E0E0;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .page-download__hero-section {
        flex-direction: column; /* Keep column for image-then-text */
    }
    .page-download__hero-image {
        aspect-ratio: 1920/675; /* Desktop aspect ratio */
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-download__container {
        padding: 15px;
    }

    .page-download__hero-section {
        padding: 30px 15px;
    }

    .page-download__hero-title {
        font-size: 2rem;
    }

    .page-download__hero-description {
        font-size: 1rem;
    }

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

    .page-download__btn {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
    }

    .page-download__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-download__steps {
        grid-template-columns: 1fr;
    }

    .page-download__feature-list {
        grid-template-columns: 1fr;
    }

    .page-download__faq-question {
        font-size: 1.1rem;
    }

    .page-download__faq-answer {
        font-size: 0.95rem;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-download img {
        max-width: 100%;
        height: auto;
        display: block; /* Important for preventing overflow */
    }
    /* Content area image size lower limit check */
    .page-download__qr-code,
    .page-download__installation-icon,
    .page-download__login-icon,
    .page-download__feature-icon {
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
    }
}

@media (max-width: 549px) {
    .page-download__hero-title {
        font-size: 1.6rem;
    }
    .page-download__section-title {
        font-size: 1.6rem;
    }
}