.page-download {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-bottom: 40px; /* Add some padding at the bottom */
    background-color: var(--deep-navy, #08162B); /* Use Deep Navy as overall background */
    color: var(--text-main, #F3F8FF); /* Main text color */
}

.page-download__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: var(--main-color, #113B7A); /* Hero section background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 20px;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* 1920x600 ratio */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-download__main-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem); /* Adjusted H1 font size for better responsiveness */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold, #F2C14E); /* Gold for main title */
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-download__intro-text {
    font-size: 1.1rem;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: var(--text-main, #F3F8FF);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-download__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-download__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 40px;
    position: relative;
}

.page-download__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold, #F2C14E);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-download__feature-card {
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color, #244D84);
}

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

.page-download__feature-icon {
    width: 100%; /* Ensure images are large */
    height: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    max-width: 300px; /* Example max size for feature icons */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-download__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
}

.page-download__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

.page-download__platform-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-download__platform-card {
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: left;
    border: 1px solid var(--border-color, #244D84);
}

.page-download__platform-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 25px;
    text-align: center;
}

.page-download__platform-image {
    width: 100%;
    height: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    max-width: 800px; /* Example for platform images */
    display: block;
    margin: 0 auto 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-download__installation-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-download__installation-steps li {
    font-size: 1rem;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

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

.page-download__installation-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color, #1D5FD1);
    color: var(--text-main, #F3F8FF);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.page-download__installation-steps a {
    color: var(--glow, #4FA8FF); /* Link color */
    text-decoration: none;
    font-weight: 600;
}

.page-download__installation-steps a:hover {
    text-decoration: underline;
}

.page-download__requirements-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-download__requirements-list li {
    font-size: 1rem;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.page-download__requirements-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold, #F2C14E);
    font-size: 1.2rem;
    line-height: 1;
}

.page-download__faq-item {
    background-color: var(--card-bg, #10233F);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid var(--border-color, #244D84);
}

.page-download__faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 10px;
}

.page-download__faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

.page-download__cta-bottom {
    padding-top: 40px;
    padding-bottom: 80px;
}

.page-download__cta-button--bottom {
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-download__hero-section {
        padding-bottom: 30px;
    }

    .page-download__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-download__intro-text {
        font-size: 1rem;
    }

    .page-download__section {
        padding: 40px 15px;
    }

    .page-download__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-download__content-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .page-download__feature-card {
        padding: 25px;
    }

    .page-download__feature-icon {
        max-width: 250px;
    }

    .page-download__platform-guide {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .page-download__platform-card {
        padding: 25px;
    }

    .page-download__platform-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .page-download__installation-steps li,
    .page-download__requirements-list li,
    .page-download__faq-question,
    .page-download__faq-answer {
        font-size: 0.9rem;
    }

    .page-download__faq-item {
        padding: 20px;
    }
}

@media (max-width: 549px) {
    .page-download__hero-section {
        padding-bottom: 20px;
    }

    .page-download__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-download__intro-text {
        font-size: 0.9rem;
    }

    .page-download__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-download__section {
        padding: 30px 10px;
    }

    .page-download__section-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        margin-bottom: 25px;
    }

    .page-download__content-grid {
        gap: 20px;
    }

    .page-download__feature-card {
        padding: 20px;
    }

    .page-download__platform-card {
        padding: 20px;
    }

    .page-download__platform-title {
        font-size: 1.25rem;
    }

    .page-download__installation-steps li,
    .page-download__requirements-list li,
    .page-download__faq-question,
    .page-download__faq-answer {
        font-size: 0.85rem;
    }

    .page-download__faq-item {
        padding: 15px;
    }
}

/* Ensure no content causes horizontal scrolling on mobile */
.page-download {
    overflow-x: hidden;
}
/* All images within .page-download must be responsive */
.page-download img {
  max-width: 100%;
  height: auto;
}

/* Ensure content area images meet min size requirements for display */
.page-download__feature-icon,
.page-download__platform-image {
  min-width: 200px;
  min-height: 200px;
}
/* For mobile, ensure that the *actual displayed* width/height is not less than 200px if not overridden by max-width: 100% */
@media (max-width: 768px) {
  .page-download__feature-icon,
  .page-download__platform-image {
    max-width: 100%;
    height: auto;
  }
}