.download-section {
    position: relative;
    width: 940px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    overflow-x: visible; /* allow negative margins to overlap */
}

.download-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 331px;
    background: linear-gradient(270deg, rgba(20, 20, 20, 0.7) 0%, #141414 60%),
        url("../../images/unsplash.jpg") center/cover no-repeat;
    border: 1px solid #131313;
    border-radius: 12px;
    z-index: 1;
}

/* Screenshots */
.download-images {
    display: flex;
    flex-wrap: nowrap; /* prevent images from wrapping */
    justify-content: center;
    position: relative;
    overflow: visible;
    margin-top:-30px;
    z-index:10;
}

.download-images img {
    height: 318px;
    object-fit: cover;
    border-radius: 12px;
}

/* Make first image overlap second by half */
.img-432 {
    width: 120px;
    height: 130px;
    margin-right: -60px; /* smaller overlap */
    margin-top: -40px;
    z-index: 2;
}

.img-729 {
    width: 125px;
    height: 130px;
    margin-top: -40px;
    z-index: 1;
}

/* Text Content */
.download-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #fff;
    max-width: 50%;
}

.download-content .headline {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.download-content .description {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 32px;
    line-height: 39px;
    color: #fff;
}

.download-content .available-on {
    font-weight: 600;
    font-size: 16px;
}

/* App Badges */
.app-badges {
    display: flex;
    gap: 16px; /* space between badges */
    margin-top: 32px;
}

/* Generic badge */
.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 135px; /* Google Play width */
    height: 40px;
    padding: 0 8px;
    border-radius: 7px;
    background: #141414;
    border: 1px solid #242424;
    text-decoration: none;
    color: #fff;
    font-family: "Inter", sans-serif;
}

/* Logo container */
.badge .logo {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Google Play badge logo */
.google-logo svg {
    width: 24px;
    height: 24px;
}

/* Apple badge logo */
.apple-logo svg {
    width: 24px;
    height: 24px;
}

/* Text container inside badge */
.badge .text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
}

/* “Get it on” / “Download on the” text */
.badge .text span:first-child {
    font-weight: 300;
}

/* Store name text bold */
.badge .text .store-name {
    font-weight: 600; /* bold */
    font-size: 12px;
}
/* Responsive */

/* Tablet description tweak */
@media (max-width: 1024px) and (min-width: 769px) {
    .download-content .description {
        font-size: 22px;  /* smaller than desktop 32px */
        line-height: 28px; /* adjust line-height proportionally */
    }
}

/* Mobile tweaks */
/* Responsive tweaks */
/* Mobile tweaks */
/* Mobile adjustments for download section */
@media (max-width: 768px) {
    .download-section {
        flex-direction: row; /* keep images and text side by side */
        justify-content: center;
        align-items: flex-start;
        gap: 30px; /* gap between images and text */
        padding: 16px;
    }

    .download-images {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        width: auto; /* allow scaling */
    }

    .img-432 {
        width: 90px;
        height: 100px;
        margin-right: -45px; /* maintain overlap */
        margin-top: 0; /* remove vertical offset */
        z-index: 2;
    }

    .img-729 {
        width: 95px;
        height: 100px;
        margin-top: 0;
        z-index: 1;
    }

    .download-content {
        max-width: 50%; /* allow gap space */
        gap: 8px;
    }

    .download-content .headline {
        font-size: 12px;
    }

    .download-content .description {
        font-size: 14px;
        line-height: 18px;
    }

    .download-content .available-on {
        font-size: 12px;
    }

    .app-badges {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .badge {
        width: 150px;
        height: 44px;
        font-size: 9px;
        padding: 0 4px;
    }
}

@media (min-width: 1441px) {
    .download-section {
        width: 80%;
    }
}