.achi-widget {
    --achi-accent: #1769e8;
    --achi-heading: #171f2d;
    --achi-text: #536174;
    --achi-muted: #8793a5;
    --achi-stars: #f5b800;
    --achi-panel-bg: #ffffff;
    --achi-card-bg: #ffffff;
    --achi-border: #edf2f9;
    --achi-gap: 18px;
    --achi-testimonials-width: 52%;
    --achi-panel-radius: 18px;
    width: 100%;
}

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

.achi-widget .achi-grid {
    display: flex;
    align-items: stretch;
    gap: var(--achi-gap);
    width: 100%;
}

.achi-widget .achi-panel {
    position: relative;
    min-width: 0;
    border: 1px solid var(--achi-border);
    border-radius: var(--achi-panel-radius);
    background: var(--achi-panel-bg);
    box-shadow: 0 10px 34px rgba(42, 78, 126, .035);
    overflow: hidden;
}

.achi-widget .achi-testimonials {
    flex: 0 1 var(--achi-testimonials-width);
}

.achi-widget .achi-articles {
    flex: 1 1 0;
}

.achi-widget .achi-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.achi-widget .achi-panel-title {
    margin: 0;
    color: var(--achi-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.achi-widget .achi-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--achi-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.achi-widget a.achi-all-link:hover,
.achi-widget a.achi-all-link:focus-visible {
    opacity: .78;
    transform: translateY(-1px);
}

.achi-widget .achi-all-link.is-disabled {
    cursor: default;
}

.achi-widget .achi-all-icon {
    font-size: 10px;
    line-height: 1;
}

.achi-widget .achi-testimonial-stage {
    position: relative;
    min-height: 208px;
    padding: 8px 4px 26px;
}

.achi-widget .achi-quote {
    position: absolute;
    inset-block-start: -6px;
    inset-inline-end: 2px;
    color: #73a8ff;
    font-family: Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    opacity: .95;
    pointer-events: none;
}

.achi-widget .achi-slides {
    position: relative;
    min-height: 170px;
}

.achi-widget .achi-slide {
    position: relative;
    padding-inline-end: 48px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s ease, transform .22s ease;
}

.achi-widget .achi-slide.is-active {
    opacity: 1;
    transform: none;
}

.achi-widget .achi-slide[hidden] {
    display: none;
}

.achi-widget .achi-review-text {
    max-width: 610px;
    margin: 10px 0 20px;
    color: var(--achi-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
}

.achi-widget .achi-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 9px;
}

.achi-widget .achi-star {
    color: #dbe2ec;
    font-size: 17px;
    line-height: 1;
}

.achi-widget .achi-star.is-filled {
    color: var(--achi-stars);
}

.achi-widget .achi-patient {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.achi-widget .achi-patient-name {
    color: var(--achi-heading);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.achi-widget .achi-patient-role {
    color: var(--achi-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

.achi-widget .achi-dots {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transform: translateX(-50%);
}

.achi-widget[dir="rtl"] .achi-dots {
    transform: translateX(50%);
}

.achi-widget .achi-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cdd6e3;
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.achi-widget .achi-dot.is-active {
    width: 8px;
    background: var(--achi-accent);
}

.achi-widget .achi-dot:focus-visible {
    outline: 2px solid var(--achi-accent);
    outline-offset: 3px;
}

.achi-widget .achi-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.achi-widget .achi-post-card {
    position: relative;
    min-width: 0;
    min-height: 184px;
    border: 1px solid var(--achi-border);
    border-radius: 12px;
    background: var(--achi-card-bg);
    box-shadow: 0 7px 24px rgba(42, 78, 126, .025);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.achi-widget .achi-post-card:hover,
.achi-widget .achi-post-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(23, 105, 232, .18);
    box-shadow: 0 12px 28px rgba(42, 78, 126, .065);
}

.achi-widget .achi-post-link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 184px;
    padding: 16px 15px 14px;
    color: inherit;
    text-decoration: none;
}

.achi-widget .achi-post-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.achi-widget .achi-post-title {
    margin: 0 0 9px;
    color: var(--achi-heading);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.75;
}

.achi-widget .achi-post-excerpt {
    margin: 0;
    color: var(--achi-text);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.9;
}

.achi-widget .achi-post-date {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 20px;
    color: var(--achi-muted);
    font-size: 10px;
    line-height: 1.5;
}

.achi-widget .achi-post-card.has-image .achi-post-copy,
.achi-widget .achi-post-card.has-image .achi-post-date {
    padding-inline-end: 62px;
}

.achi-widget .achi-post-image {
    position: absolute;
    z-index: 1;
    inset-inline-end: 8px;
    bottom: 8px;
    display: block;
    width: 66px;
    height: 66px;
    border-radius: 13px;
    overflow: hidden;
}

.achi-widget .achi-post-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(23,105,232,.05));
    pointer-events: none;
}

.achi-widget .achi-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achi-widget .achi-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 184px;
    padding: 22px;
    border: 1px dashed var(--achi-border);
    border-radius: 12px;
    color: var(--achi-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1024px) {
    .achi-widget .achi-grid {
        flex-direction: column;
    }

    .achi-widget .achi-testimonials,
    .achi-widget .achi-articles {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .achi-widget .achi-panel-header {
        margin-bottom: 16px;
    }

    .achi-widget .achi-panel-title {
        font-size: 18px;
    }

    .achi-widget .achi-testimonial-stage {
        min-height: 0;
        padding-bottom: 24px;
    }

    .achi-widget .achi-slides {
        min-height: 0;
    }

    .achi-widget .achi-slide {
        padding-inline-end: 38px;
    }

    .achi-widget .achi-quote {
        font-size: 44px;
    }

    .achi-widget .achi-review-text {
        font-size: 13px;
        line-height: 1.95;
    }

    .achi-widget .achi-posts {
        grid-template-columns: 1fr;
    }

    .achi-widget .achi-post-card,
    .achi-widget .achi-post-link {
        min-height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .achi-widget .achi-slide,
    .achi-widget .achi-post-card,
    .achi-widget .achi-all-link,
    .achi-widget .achi-dot {
        transition: none;
    }
}
