/* =========================
   FUTURE OF WORK (MIN-WIDTH)
========================= */

.ai-sec {
    background: #FEFAF1;
    padding: 28px 0 34px;
    overflow: hidden;
    position: relative;
}

.ai-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    min-height: 520px;
}

/* decorative */
.ai-star {
    position: absolute;
    right: -120px;
    top: 70px;
    width: 100%;
    /* opacity: .28; */
    pointer-events: none;
    user-select: none;
}

.ai-hand {
    position: absolute;
    right: -120px;
    bottom: -40px;
    width: 360px;
    pointer-events: none;
    user-select: none;
}

.ai-content {
    position: relative;
    z-index: 2;
}

/* heading */
.ai-head {
    text-align: center;
    padding-top: 6px;
}

.ai-title {
    margin: 0;
    font-family: SatoshiBlack;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #0f1115;
}

/* bubbles layout */
.ai-bubbles {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto;
    align-items: start;
    justify-content: start;
}

.ai-bubble {
    background: #ffffff;
    border: 1px solid rgba(15, 17, 21, .08);
    border-radius: 14px;
    padding: 12px 14px;
    font-family: SatoshiRegular, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #111418;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
    width: fit-content;
    max-width: 100%;
}

/* positions (mobile: all centered) */
/* .ai-bubbles .ai-bubble {
    margin-left: auto;
    margin-right: auto;
} */

/* bottom left text */
.ai-bottom {
    margin-top: 16px;
    display: flex;
    /* justify-content: center; */
}

.ai-cta {
    margin: 0;
    font-family: SatoshiBlack;
    font-size: 40px;
    line-height: .96;
    letter-spacing: -0.03em;
    text-transform: none;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, .04);
    -webkit-text-stroke: 7px #ffffff;
    paint-order: stroke fill;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.15));
}

.ai-cta span {
    display: block;
}

.internship-star {
    display: none;
}

/* =========================
   >= 520px
========================= */
@media (min-width: 520px) {
    .ai-title {
        font-size: 32px;
    }

    .ai-bubble {
        font-size: 13.5px;
        padding: 13px 16px;
        border-radius: 16px;
    }

    .ai-cta {
        font-size: 48px;
    }

    .ai-hand {
        /* width: 420px; */
        right: -150px;
    }

    .ai-star {
        max-width: 420px;
        right: -150px;
    }
}

/* =========================
   >= 768px (tablet)
========================= */
@media (min-width: 768px) {
    .ai-sec {
        padding: 80px 0;
    }

    .ai-wrap {
        min-height: 560px;
    }

    .ai-title {
        font-size: 40px;
    }

    /* 2-column bubble layout like your design */
    .ai-bubbles {
        margin-top: 75px;
        /* grid-template-columns: 1fr 1fr; */
        /* column-gap: 18px; */
        row-gap: 14px;
    }

    /* stop centering; allow natural left/right alignment */
    .ai-bubbles .ai-bubble {
        margin: 0;
        max-width: 520px;
    }

    /* custom placement */
    .ai-b1 {
        justify-self: start;
    }

    .ai-b2 {
        justify-self: start;
    }

    .ai-b3 {
        grid-column: 1 / 2;
        justify-self: start;
        margin-top: 6px;
    }

    .ai-b4 {
        grid-column: 2 / 3;
        justify-self: start;
        margin-top: 6px;
    }

    .ai-b5 {
        grid-column: 1 / 2;
        justify-self: start;
        margin-top: 6px;
    }

    /* bottom text aligns left */
    .ai-bottom {
        margin-top: 60px;
        justify-content: flex-start;
    }

    .ai-cta {
        font-size: 66px;
    }

    .ai-hand {
        width: 350px;
        right: 17%;
        bottom: -97px;
    }

    .ai-star {
        /* max-width: 520px; */
        right: -220px;
        top: 70px;
        /* opacity: .25; */
    }

    .internship-star {
        position: absolute;
        height: 50px;
        top: 26%;
    }
}

/* =========================
   >= 1024px (desktop)
========================= */
@media (min-width: 1000px) {
    .ai-wrap {
        min-height: 640px;
    }

    .ai-title {
        font-size: 44px;
    }

    .ai-bubble {
        font-size: 18px;
        border-radius: 18px;
        padding: 14px 18px;
    }

    .ai-cta {
        font-size: 84px;
    }

    .ai-hand {
        width: 400px;
        right: 13%;
        /* bottom: -97px; */
    }

    .ai-star {
        /* max-width: 620px; */
        right: -280px;
        top: 90px;
    }

    .internship-star {
        height: 70px;
        top: 20%;
    }

    .ai-wrap {
        width: min(1024px, calc(100% - 40px));
    }
}

/* =========================
   >= 1280px (large)
========================= */
@media (min-width: 1280px) {
    .ai-title {
        font-size: 48px;
    }

    .ai-cta {
        font-size: 92px;
    }

    .ai-hand {
        width: 420px;
        right: 9%;
        /* bottom: -97px; */
    }

    .ai-star {
        /* max-width: 720px;     */
        right: -340px;
        top: 96px;
    }
}

@media (min-width:1400px) {

    .ai-wrap {
        width: min(1260px, calc(100% - 40px));
    }
}