/*
 * #testing-block IS the pinned scroll-mask animation's "pill" — assets/js/
 * main.js morphs it every frame between a small pill (bottom of screen)
 * and a full-viewport cover, via inline width/height/top/left/border-radius.
 * No CSS here sets those four properties; JS owns them from the first
 * frame (footer-placed script, runs after DOM parse).
 */
#testing-block {
    position: absolute;
    z-index: 2;
    /* Explicit fallback width — same reasoning as .about-intro in
       about-page/style.css: none of width/height/top/left are set
       inline until the first requestAnimationFrame actually fires, which
       is AFTER the synchronous first measure() call that reads
       .testing-block__inner's offsetHeight. Without this, an absolutely
       positioned flex container with no width resolves to shrink-to-fit,
       which can come out far narrower than the real content width and
       throw off that first measurement. */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #D3E5FD;
    box-shadow: 0 30px 80px rgba(11, 31, 58, 0.35);
    will-change: width, height, top, left, border-radius;
}

.testing-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testing-block__divider {
    width: 700px;
    max-width: 100%;
    height: 1px;
    margin: 0 auto;
    background: #023A85;
}

.testing-block__divider--top {
    margin-bottom: 48px;
}

.testing-block__divider--bottom {
    margin-top: 48px;
}

.testing-block__title {
    margin: 0 0 56px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: #023A85;
}

.testing-block__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .testing-block__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testing-block__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    padding: 32px 24px;
    border: 1px solid #023A85;
    border-radius: 24px;
}

.testing-block__feature p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #023A85;
}

.testing-block__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: #023A85;
    border-radius: 40px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

/*
 * Placed after the base rules above (not alongside the other media
 * queries near the top) so these overrides actually win the cascade —
 * same specificity, later source order wins regardless of the media
 * query condition.
 */
@media (max-width: 600px) {
    /* Divider/cards/button all width:100% (or capped) off this container —
       with no horizontal padding here they ran flush to the screen edges. */
    .testing-block__inner {
        padding: 0 24px;
    }

    .testing-block__divider--top {
        margin-bottom: 24px;
    }

    .testing-block__divider--bottom {
        margin-top: 24px;
    }

    .testing-block__title {
        margin-bottom: 28px;
        font-size: 26px;
    }

    .testing-block__button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .testing-block__features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* Icon-above-text, heavily padded cards read fine on desktop's wide
       grid but turn into a tall, sparse single-column stack on mobile —
       icon beside text (like a compact list row) fits far more content
       per screen height without needing to shrink anything illegibly. */
    .testing-block__feature {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .testing-block__feature p {
        font-size: 15px;
        text-align: left;
    }
}
