
.reha-ai-widget,
.reha-ai-widget * {
    box-sizing: border-box;
}

.reha-ai-widget {
    --reha-navy: #082b70;
    --reha-navy-dark: #061d4a;
    --reha-red: #ed1c24;
    --reha-text: #0a2455;
    --reha-muted: #5e6d88;
    --reha-border: #dfe6f0;
    --reha-soft: #f6f9fd;
    width: 100%;
    overflow: hidden;
    color: var(--reha-text);
    background:
        radial-gradient(circle at 10% 7%, rgba(33, 122, 255, .07), transparent 22%),
        radial-gradient(circle at 93% 12%, rgba(237, 28, 36, .05), transparent 18%),
        #fff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.reha-ai-widget img {
    display: block;
    max-width: 100%;
}

.reha-ai-widget a {
    text-decoration: none;
}

.reha-ai-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.reha-ai-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(8, 43, 112, .08);
    border-radius: 0 0 42px 42px;
    background:
        linear-gradient(120deg, #fff 0%, #fff 49%, #eef5ff 49.2%, #eaf3ff 100%);
    box-shadow: 0 20px 60px rgba(8, 43, 112, .08);
}

.reha-ai-hero::before {
    content: "";
    position: absolute;
    inset: auto auto 7% -30px;
    width: 150px;
    height: 150px;
    border: 20px solid rgba(237, 28, 36, .08);
    border-radius: 50%;
}

.reha-ai-hero::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 28px;
    width: 72px;
    height: 72px;
    opacity: .35;
    background-image: radial-gradient(circle, #1e70e9 2px, transparent 2.5px);
    background-size: 14px 14px;
}

.reha-ai-hero__copy {
    position: relative;
    z-index: 3;
    align-self: center;
    padding: 72px 34px 64px 62px;
}

.reha-ai-brand {
    margin-bottom: 8px;
    color: var(--reha-navy);
    font-size: clamp(60px, 7vw, 104px);
    font-weight: 800;
    letter-spacing: -5px;
    line-height: .9;
}

.reha-ai-brand::first-letter {
    letter-spacing: -3px;
}

.reha-ai-brand::after {
    content: "";
    display: inline-block;
    width: .13em;
    height: .13em;
    margin-left: .04em;
    transform: translateY(-.58em);
    border-radius: 50%;
    background: var(--reha-red);
    box-shadow: 0 .18em 0 -.02em var(--reha-red);
}

.reha-ai-hero-title {
    max-width: 680px;
    margin: 0 0 18px;
    color: var(--reha-navy);
    font-size: clamp(25px, 2.4vw, 39px);
    font-weight: 700;
    line-height: 1.22;
}

.reha-ai-description {
    max-width: 640px;
    margin-bottom: 28px;
    color: #304567;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.8;
}

.reha-ai-description p {
    margin: 0;
}

.reha-ai-hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    max-width: 680px;
    margin: 0 0 27px;
}

.reha-ai-hero-feature {
    min-width: 0;
    color: var(--reha-navy);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.38;
}

.reha-ai-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.reha-ai-icon--outline {
    width: 66px;
    height: 66px;
    margin: 0 auto 9px;
    border: 1px solid #cdd9ea;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 9px 24px rgba(8, 43, 112, .07);
}

.reha-ai-icon--outline i,
.reha-ai-icon--outline svg {
    width: 25px;
    height: 25px;
    color: var(--reha-navy);
    fill: currentColor;
    font-size: 25px;
}

.reha-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 48px;
    padding: 12px 25px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.reha-ai-button:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.reha-ai-button--navy {
    background: linear-gradient(135deg, var(--reha-navy), #061f53);
    box-shadow: 0 12px 25px rgba(8, 43, 112, .2);
}

.reha-ai-button--red {
    min-width: 172px;
    background: linear-gradient(135deg, var(--reha-red), #df1119);
    box-shadow: 0 12px 24px rgba(237, 28, 36, .25);
}

.reha-ai-hero__visual {
    position: relative;
    min-width: 0;
    min-height: 610px;
    overflow: hidden;
    background:
        radial-gradient(circle at 62% 22%, rgba(255,255,255,.25), transparent 35%),
        linear-gradient(145deg, #0b4aab 0%, var(--reha-navy) 52%, #04163f 100%);
}

.reha-ai-hero__visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 42px;
    left: 30px;
    width: 110px;
    height: 110px;
    border: 1px dashed rgba(255,255,255,.55);
    border-radius: 50%;
}

.reha-ai-hero__visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 25px;
    bottom: 20px;
    width: 88px;
    height: 88px;
    opacity: .45;
    background-image: radial-gradient(circle, #fff 2px, transparent 2.5px);
    background-size: 14px 14px;
}

.reha-ai-hero__visual > img {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;
}

.reha-ai-hero__orb {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.reha-ai-hero__orb--one {
    top: 42px;
    left: 18px;
    width: 72px;
    height: 72px;
}

.reha-ai-hero__orb--two {
    top: 82px;
    right: 22px;
    width: 56px;
    height: 56px;
}

.reha-ai-badge {
    position: absolute;
    z-index: 5;
    left: 18px;
    bottom: 34px;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    padding: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #fa2931, #d9050d);
    box-shadow: 0 14px 30px rgba(237,28,36,.32);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.reha-ai-programs {
    padding: 54px 4px 20px;
}

.reha-ai-section-heading {
    margin: 0 auto 28px;
    text-align: center;
}

.reha-ai-section-heading h2,
.reha-ai-gains > h2 {
    margin: 0 0 7px;
    color: var(--reha-navy);
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.reha-ai-section-heading p {
    margin: 0;
    color: var(--reha-muted);
    font-size: 15px;
}

.reha-ai-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.reha-ai-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 28px 25px 24px;
    border: 1px solid var(--reha-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(8, 43, 112, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.reha-ai-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent), #fff 70%);
    box-shadow: 0 18px 42px rgba(8, 43, 112, .11);
}

.reha-ai-card__heading {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    margin-bottom: 20px;
}

.reha-ai-card__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #fff;
    background: var(--card-accent);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--card-accent), transparent 70%);
}

.reha-ai-card__icon i,
.reha-ai-card__icon svg {
    width: 31px;
    height: 31px;
    color: currentColor;
    fill: currentColor;
    font-size: 31px;
}

.reha-ai-card h3 {
    margin: 0 0 4px;
    color: var(--card-accent);
    font-size: clamp(23px, 2.15vw, 34px);
    font-weight: 750;
    letter-spacing: -.7px;
    line-height: 1.06;
}

.reha-ai-card__heading p {
    margin: 0;
    color: var(--reha-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.42;
}

.reha-ai-list,
.reha-ai-smart__list,
.reha-ai-smart__panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reha-ai-list {
    margin-bottom: 24px;
}

.reha-ai-list li,
.reha-ai-smart__list li,
.reha-ai-smart__panel li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: #243858;
    font-size: 13px;
    line-height: 1.5;
}

.reha-ai-list i {
    margin-top: 4px;
    color: var(--card-accent);
    font-size: 14px;
}

.reha-ai-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 220px);
    min-height: 46px;
    margin: auto auto 0;
    padding: 11px 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--card-accent);
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s ease, filter .2s ease;
}

.reha-ai-card__button:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.reha-ai-gains {
    margin: 22px 0 20px;
    padding: 22px 25px 26px;
    border: 1px solid var(--reha-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(8, 43, 112, .06);
}

.reha-ai-gains > h2 {
    margin-bottom: 22px;
    text-align: center;
    font-size: clamp(23px, 2.2vw, 32px);
}

.reha-ai-gains__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reha-ai-gain {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    min-height: 86px;
    padding: 8px 17px;
    border-right: 1px solid var(--reha-border);
}

.reha-ai-gain:last-child {
    border-right: 0;
}

.reha-ai-gain__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--reha-navy);
}

.reha-ai-gain__icon i,
.reha-ai-gain__icon svg {
    width: 37px;
    height: 37px;
    color: currentColor;
    fill: currentColor;
    font-size: 37px;
}

.reha-ai-gain p {
    margin: 0;
    color: #1e3151;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.48;
}

.reha-ai-smart {
    position: relative;
    display: grid;
    grid-template-columns: .95fr 1.15fr .62fr;
    gap: 25px;
    align-items: center;
    min-height: 380px;
    margin-top: 22px;
    overflow: hidden;
    padding: 42px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 58% 40%, rgba(42, 128, 255, .35), transparent 30%),
        linear-gradient(120deg, #061c49, var(--reha-navy) 50%, #031135);
}

.reha-ai-smart::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 12px;
    width: 80px;
    height: 80px;
    opacity: .2;
    background-image: radial-gradient(circle, #fff 2px, transparent 2.5px);
    background-size: 14px 14px;
}

.reha-ai-smart__copy,
.reha-ai-smart__visual,
.reha-ai-smart__panel {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.reha-ai-smart h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.18;
}

.reha-ai-smart__copy > p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.75;
}

.reha-ai-smart__list li,
.reha-ai-smart__panel li {
    color: rgba(255,255,255,.9);
}

.reha-ai-smart__list i,
.reha-ai-smart__panel i {
    margin-top: 4px;
    color: #63a6ff;
}

.reha-ai-smart__visual {
    align-self: stretch;
    min-height: 270px;
}

.reha-ai-smart__visual img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    border-radius: 18px;
    opacity: .92;
    mix-blend-mode: screen;
}

.reha-ai-smart__panel {
    padding: 24px 20px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.reha-ai-smart__panel h3 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.reha-ai-cta {
    display: grid;
    grid-template-columns: 1.05fr .8fr .62fr;
    gap: 22px;
    align-items: center;
    min-height: 215px;
    margin-top: 22px;
    overflow: hidden;
    padding: 30px 36px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(120deg, #061d4a 0%, var(--reha-navy) 58%, #041431 100%);
}

.reha-ai-cta__copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(25px, 2.8vw, 39px);
    font-weight: 700;
    line-height: 1.22;
}

.reha-ai-cta__copy p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13.5px;
    line-height: 1.7;
}

.reha-ai-cta__visual {
    align-self: stretch;
    min-height: 155px;
    overflow: hidden;
    border-radius: 140px 0 0 140px;
}

.reha-ai-cta__visual img {
    width: 100%;
    height: 100%;
    min-height: 155px;
    object-fit: cover;
    object-position: center;
}

.reha-ai-cta__action {
    display: grid;
    justify-items: start;
    gap: 9px;
}

.reha-ai-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.reha-ai-contact:hover {
    color: #fff;
}

.reha-ai-contact i {
    width: 17px;
    text-align: center;
    color: #8ab8ff;
}

/* Elementor and theme collision protection */
.elementor-widget-reha-rehai-page .reha-ai-widget h1,
.elementor-widget-reha-rehai-page .reha-ai-widget h2,
.elementor-widget-reha-rehai-page .reha-ai-widget h3,
.elementor-widget-reha-rehai-page .reha-ai-widget p,
.elementor-widget-reha-rehai-page .reha-ai-widget ul {
    padding: 0;
}

.elementor-widget-reha-rehai-page .reha-ai-widget svg {
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1100px) {
    .reha-ai-hero {
        grid-template-columns: 1fr .88fr;
        min-height: 560px;
    }

    .reha-ai-hero__copy {
        padding: 56px 26px 52px 42px;
    }

    .reha-ai-hero__visual {
        min-height: 560px;
    }

    .reha-ai-brand {
        font-size: clamp(58px, 8vw, 84px);
    }

    .reha-ai-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 440px;
    }

    .reha-ai-hero-feature {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .reha-ai-icon--outline {
        width: 54px;
        height: 54px;
        margin: 0;
    }

    .reha-ai-program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reha-ai-card:last-child {
        grid-column: 1 / -1;
    }

    .reha-ai-gains__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 0;
    }

    .reha-ai-gain {
        border-right: 0;
        border-bottom: 1px solid var(--reha-border);
    }

    .reha-ai-gain:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .reha-ai-smart {
        grid-template-columns: .95fr 1.05fr;
    }

    .reha-ai-smart__panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 220px 1fr;
        align-items: center;
    }

    .reha-ai-smart__panel h3 {
        margin: 0;
    }

    .reha-ai-smart__panel ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .reha-ai-cta {
        grid-template-columns: 1fr .8fr;
    }

    .reha-ai-cta__action {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 767px) {
    .reha-ai-widget {
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 14px;
    }

    .reha-ai-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 0 0 26px 26px;
        background: #fff;
    }

    .reha-ai-hero__copy {
        padding: 42px 20px 34px;
        text-align: center;
    }

    .reha-ai-hero::after {
        top: 18px;
        left: 8px;
        width: 50px;
        height: 50px;
        background-size: 11px 11px;
    }

    .reha-ai-brand {
        margin-bottom: 12px;
        font-size: clamp(58px, 20vw, 78px);
        letter-spacing: -4px;
    }

    .reha-ai-hero-title {
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(23px, 7vw, 31px);
    }

    .reha-ai-description {
        margin-right: auto;
        margin-left: auto;
        font-size: 14px;
        line-height: 1.7;
    }

    .reha-ai-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    .reha-ai-hero-feature {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 8px;
        min-height: 61px;
        padding: 8px;
        border: 1px solid var(--reha-border);
        border-radius: 13px;
        background: #fff;
        text-align: left;
        font-size: 11px;
    }

    .reha-ai-icon--outline {
        width: 45px;
        height: 45px;
        box-shadow: none;
    }

    .reha-ai-icon--outline i,
    .reha-ai-icon--outline svg {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .reha-ai-button {
        width: 100%;
        max-width: 330px;
    }

    .reha-ai-hero__visual {
        min-height: 390px;
        border-radius: 22px 22px 0 0;
    }

    .reha-ai-hero__visual > img {
        object-position: center 18%;
    }

    .reha-ai-badge {
        left: 14px;
        bottom: 18px;
        width: 96px;
        height: 96px;
        padding: 11px;
        font-size: 11px;
    }

    .reha-ai-programs {
        padding-top: 42px;
    }

    .reha-ai-section-heading {
        margin-bottom: 22px;
    }

    .reha-ai-section-heading h2,
    .reha-ai-gains > h2 {
        font-size: 26px;
    }

    .reha-ai-section-heading p {
        padding: 0 6px;
        font-size: 13px;
    }

    .reha-ai-program-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .reha-ai-card:last-child {
        grid-column: auto;
    }

    .reha-ai-card {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .reha-ai-card__heading {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 16px;
    }

    .reha-ai-card__icon {
        width: 58px;
        height: 58px;
    }

    .reha-ai-card__icon i,
    .reha-ai-card__icon svg {
        width: 25px;
        height: 25px;
        font-size: 25px;
    }

    .reha-ai-card h3 {
        font-size: 24px;
    }

    .reha-ai-card__heading p,
    .reha-ai-list li {
        font-size: 12.5px;
    }

    .reha-ai-card__button {
        width: 100%;
        max-width: none;
    }

    .reha-ai-gains {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .reha-ai-gains__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reha-ai-gain,
    .reha-ai-gain:nth-last-child(-n+2) {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 72px;
        padding: 10px 5px;
        border-right: 0;
        border-bottom: 1px solid var(--reha-border);
    }

    .reha-ai-gain:last-child {
        border-bottom: 0;
    }

    .reha-ai-gain__icon {
        width: 48px;
        height: 48px;
    }

    .reha-ai-gain__icon i,
    .reha-ai-gain__icon svg {
        width: 29px;
        height: 29px;
        font-size: 29px;
    }

    .reha-ai-gain p {
        font-size: 12.5px;
    }

    .reha-ai-smart {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .reha-ai-smart h2 {
        font-size: 28px;
    }

    .reha-ai-smart__visual {
        min-height: 210px;
        order: 2;
    }

    .reha-ai-smart__visual img {
        min-height: 210px;
    }

    .reha-ai-smart__panel {
        grid-column: auto;
        grid-template-columns: 1fr;
        order: 3;
    }

    .reha-ai-smart__panel h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .reha-ai-smart__panel ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .reha-ai-cta {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 20px;
        border-radius: 20px;
        text-align: center;
    }

    .reha-ai-cta__copy h2 {
        font-size: 28px;
    }

    .reha-ai-cta__visual {
        min-height: 180px;
        border-radius: 18px;
    }

    .reha-ai-cta__visual img {
        min-height: 180px;
    }

    .reha-ai-cta__action {
        grid-column: auto;
        display: grid;
        justify-items: center;
    }

    .reha-ai-button--red {
        width: 100%;
        max-width: 330px;
    }
}

/* Narrow phones */
@media (max-width: 390px) {
    .reha-ai-widget {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .reha-ai-hero__copy {
        padding-right: 14px;
        padding-left: 14px;
    }

    .reha-ai-hero-features {
        grid-template-columns: 1fr;
    }

    .reha-ai-hero__visual {
        min-height: 330px;
    }

    .reha-ai-card h3 {
        font-size: 22px;
    }

    .reha-ai-smart__panel ul {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reha-ai-widget *,
    .reha-ai-widget *::before,
    .reha-ai-widget *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
