.practice-exact {
    position: relative;
    /* min-height: 100vh; */
    background: #f7f2ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    font-family: 'Roboto', sans-serif;
}

/* TOP TEXT */
.practice-top-text {
    font-size: 34px;
    font-weight: 700;
    color: #8a2c13;
    margin-bottom: 30px;
    font-family: cursive;
    text-align: center;
}

/* PRACTICE CARD */
.practice-title-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #000, #5f5f5f);
    padding: 22px 34px;
    border-radius: 16px;
    margin-bottom: 35px;
}

.practice-title-card > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.practice-cartoon {
    width: 60px;
}

.practice-title-text {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(32px, 4.2vw, 42px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.practice-title-text .txt-sty,
.practice-word,
.tests-word {
    font-family: inherit;
    font-weight: 700;
    display: block;
}

.practice-word {
    color: #ffffff;
}

.tests-word {
    color: #00c853;
    margin-left: 0;
    margin-top: 0.06em;
}

/* MODES BLOB */
/* .modes-blob {
            background: #e3b29a;
            padding: 50px 60px;
            border-radius: 50%;
            text-align: center;
            margin-bottom: 40px;
        } */

.modes-text {
    font-size: 26px;
    font-family: cursive;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, .25);
}

/* .modes-pill {
            background: #1aa6d6;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 20px;
            font-weight: 700;
        } */

/* FEATURES */
.features-panel {
    background: #8f8a7d;
    padding: 26px 40px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 600;
}

.features-panel p {
    margin: 10px 0;
    color: #000;
}

/* RIGHT IMAGE */
.practice-illustration {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
}

/* RESPONSIVE */
@media(max-width:1650px) {
    .practice-illustration {
      
        width: 300px;
    }
}
@media(max-width:1400px) {
    .practice-illustration {
        position: static;
        transform: none;
        margin-top: 40px;
        width: 300px;
    }
}

@media(max-width:1000px) {
    .practice-illustration {
        position: static;
        transform: none;
        margin-top: 40px;
        width: 300px;
    }

}

.modes-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #f7f2ea;
    padding: 32px 20px 48px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

/* Starburst blob — practice-shape.png (673×348 asset) */
.modes-blob {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(84vw, 640px);
    aspect-ratio: 673 / 348;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(28px, 14%, 52px) clamp(12px, 6%, 28px) clamp(20px, 10%, 36px);
    gap: clamp(8px, 2.5vw, 14px);
    text-align: center;
    border-radius: 0;
    background: transparent url('../img/practice-shape.png') center center / 100% 100% no-repeat;
}

/* TITLE TEXT — stacked above pill (no absolute overlap) */
.modes-title {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 2px 3px 0 rgba(55, 45, 40, 0.55);
    z-index: 1;
}

/* Cyan pill — below title inside starburst */
.modes-pill {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: inline-flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 12px clamp(14px, 3vw, 32px);
    min-height: 48px;
    border-radius: 999px;
    background-color: #12a9d8;
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: clamp(13px, 1.75vw, 18px);
    font-weight: 700;
    line-height: 1.25;
    color: #000000;
    gap: 4px 2px;
}

.modes-pill__mode {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.modes-pill__mode.login-required,
.modes-pill__mode.exam-profile-required {
    display: inline-flex;
    color: #000000;
    background: transparent;
    outline: none;
}

.modes-pill__mode:hover,
.modes-pill__mode:focus {
    color: inherit;
    text-decoration: none;
    opacity: 0.88;
}

.modes-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.35em;
    width: 1.35em;
    min-width: 1.35em;
    height: 1.35em;
    font-size: 1em;
    line-height: 1;
    overflow: hidden;
    text-align: center;
}

.modes-pill__icon-img {
    display: block;
    width: clamp(22px, 2.1vw, 26px);
    height: clamp(22px, 2.1vw, 26px);
    object-fit: contain;
    flex-shrink: 0;
}

.modes-pill__label {
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.modes-pill__arrow {
    margin: 0 clamp(5px, 1vw, 10px);
    font-size: 1em;
    font-weight: 700;
    color: #000000;
    flex: 0 0 auto;
    user-select: none;
    line-height: 1;
}

@media (min-width: 992px) {
    .modes-pill {
        padding: 13px 38px;
        min-height: 50px;
        font-size: 18px;
    }

    .modes-pill__icon-img {
        width: 26px;
        height: 26px;
    }

    .modes-pill__arrow {
        margin: 0 10px;
        font-size: 1.05em;
    }
}


@media (max-width: 767px) {
    .practice-title-card > img {
        max-width: 56px;
        max-height: 56px;
    }

    .modes-blob {
        width: min(96vw, 520px);
        aspect-ratio: auto;
        min-height: 250px;
        padding: clamp(26px, 8vw, 38px) clamp(14px, 5vw, 24px) clamp(22px, 7vw, 30px);
        gap: 12px;
    }

    .modes-title {
        font-size: clamp(28px, 7.2vw, 38px);
        line-height: 1.12;
    }

    .modes-pill {
        width: min(100%, 460px);
        max-width: 100%;
        padding: 12px 14px;
        min-height: 48px;
        font-size: clamp(13px, 3.2vw, 16px);
        row-gap: 8px;
        column-gap: 8px;
        border-radius: 18px;
    }

    .modes-pill__mode {
        max-width: 100%;
        gap: 6px;
        flex: 0 1 auto;
        justify-content: center;
        min-width: 0;
        white-space: nowrap;
    }

    .modes-pill__label {
        white-space: nowrap;
        text-align: center;
        line-height: 1.25;
        font-size: 1em;
    }

    .modes-pill__icon-img {
        width: 20px;
        height: 20px;
    }

    .modes-pill__icon {
        font-size: 1.2em;
    }

    .modes-pill__arrow {
        margin: 0 6px;
        flex: 0 0 auto;
    }
}

@media (max-width: 575px) {
    .modes-section {
        padding: 24px 12px 30px;
    }

    .modes-blob {
        width: 100%;
        max-width: 420px;
        min-height: 0;
        aspect-ratio: auto;
        background-image: none;
        background-color: #d9a58f;
        border-radius: 24px;
        padding: 22px 14px 18px;
    }

    .modes-title {
        font-size: clamp(26px, 8vw, 34px);
    }

    .modes-pill {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }

    .modes-pill__arrow {
        display: none;
    }

    .modes-pill__mode {
        width: 100%;
        justify-content: flex-start;
        padding: 6px 8px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.18);
        white-space: normal;
    }

    .modes-pill__label {
        white-space: normal;
        text-align: left;
        font-size: 0.98rem;
    }
}

@media (max-width: 380px) {
    .modes-blob {
        width: min(94vw, 340px);
        aspect-ratio: auto;
        min-height: 220px;
    }

    .modes-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .modes-pill {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }

    .modes-pill__arrow {
        display: none;
    }

    .modes-pill__mode {
        width: 100%;
        justify-content: flex-start;
        padding: 4px 6px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
    }
}