.acvw-template {
    --acvw-template-primary: #1769e0;
    --acvw-template-primary-deep: #1257bc;
    --acvw-template-primary-soft: #eef5ff;
    --acvw-template-ink: #1f2937;
    --acvw-template-muted: #667085;
    --acvw-template-line: #e4ebf5;
    --acvw-template-surface: #ffffff;
    --acvw-template-page: #f7f9fc;
    box-sizing: border-box;
    width: 100%;
}

.acvw-template *,
.acvw-template *::before,
.acvw-template *::after {
    box-sizing: border-box;
}

.acvw-template a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Hero benefits — homepage reference strip directly below Doctor Hero.
 *
 * The template deliberately escapes a boxed Elementor parent so the white
 * benefits surface aligns to the viewport composition from the approved home
 * reference while the actual cards remain constrained to a readable max width.
 * Item count remains driven entirely by the existing Elementor repeater.
 * -------------------------------------------------------------------------- */

.acvw-template-hero-benefits {
    position: relative;
    z-index: 20;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    margin: -64px calc(50% - 50vw) 0;
    padding-inline: clamp(28px, 4.25vw, 72px);
    background: transparent;
    overflow: visible;
}

.acvw-template-benefits-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 1480px);
    margin-inline: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .985);
    border: 1px solid rgba(47, 101, 173, .075);
    border-radius: 23px;
    box-shadow: 0 18px 48px rgba(31, 55, 83, .095);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    isolation: isolate;
}

.acvw-template-benefits-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(247, 251, 255, .66) 0%, rgba(255, 255, 255, 0) 58%);
}

.acvw-template-card-benefit {
    position: relative;
    min-width: 0;
    color: inherit;
}

.acvw-template-card-benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset-block: 28px;
    inset-inline-end: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(228, 235, 245, 0), var(--acvw-template-line) 22%, var(--acvw-template-line) 78%, rgba(228, 235, 245, 0));
}

.acvw-template-card-benefit .acvw-template-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 158px;
    padding: 21px 22px 19px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: background-color .22s ease, transform .22s ease;
}

.acvw-template-card-benefit:hover .acvw-template-card-inner,
.acvw-template-card-benefit:focus-within .acvw-template-card-inner {
    background: linear-gradient(180deg, rgba(239, 246, 255, .62), rgba(255, 255, 255, .96));
    transform: translateY(-2px);
}

.acvw-template-card-benefit .acvw-template-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 0 2px;
    color: var(--acvw-template-primary);
    background: linear-gradient(145deg, #f4f8ff, var(--acvw-template-primary-soft));
    border: 1px solid rgba(23, 105, 224, .075);
    border-radius: 50%;
    flex: 0 0 50px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.acvw-template-card-benefit .acvw-template-icon i {
    font-size: 21px;
}

.acvw-template-card-benefit .acvw-template-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.acvw-template-card-benefit .acvw-template-card-copy {
    width: 100%;
    min-width: 0;
    text-align: center !important;
}

.acvw-template-card-benefit .acvw-template-card-title {
    margin: 0 0 4px;
    color: #263244;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    text-align: center !important;
}

.acvw-template-card-benefit .acvw-template-card-description {
    max-width: 225px;
    margin: 0 auto;
    color: #68758a;
    font-size: 11.75px;
    font-weight: 500;
    line-height: 1.78;
    text-align: center !important;
}

/* --------------------------------------------------------------------------
 * Treatment approach
 * -------------------------------------------------------------------------- */

.acvw-template-treatment-approach {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    background: transparent;
}

.acvw-template-treatment-approach::before {
    content: "";
    position: absolute;
    top: 34px;
    inset-inline-start: 5%;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(47, 101, 173, 0.10) 0, rgba(47, 101, 173, 0) 70%);
    pointer-events: none;
}

.acvw-template-treatment-header {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 34px;
    text-align: center;
}

.acvw-template-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 14px;
    margin-bottom: 10px;
    color: var(--acvw-template-primary);
    background: var(--acvw-template-primary-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.acvw-template-heading {
    margin: 0;
    color: var(--acvw-template-ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.3;
}

.acvw-template-heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin: 14px auto 0;
    background: var(--acvw-template-primary);
    border-radius: 999px;
}

.acvw-template-intro {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--acvw-template-muted);
    font-size: 14px;
    line-height: 1.9;
}

.acvw-template-treatment-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.acvw-template-card-treatment {
    position: relative;
    min-width: 0;
    color: inherit;
}

.acvw-template-card-treatment .acvw-template-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 250px;
    padding: 28px 26px 26px;
    overflow: hidden;
    background: var(--acvw-template-surface);
    border: 1px solid var(--acvw-template-line);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(31, 55, 83, 0.07);
    text-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.acvw-template-card-treatment .acvw-template-card-inner::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--acvw-template-primary), #75a1d8);
    transform: scaleX(0.34);
    transform-origin: inline-start;
    transition: transform 0.25s ease;
}

.acvw-template-card-treatment:hover .acvw-template-card-inner {
    transform: translateY(-6px);
    border-color: rgba(47, 101, 173, 0.20);
    box-shadow: 0 20px 48px rgba(31, 55, 83, 0.12);
}

.acvw-template-card-treatment:hover .acvw-template-card-inner::after {
    transform: scaleX(1);
}

.acvw-template-card-number {
    position: absolute;
    top: 20px;
    inset-inline-end: 22px;
    color: rgba(47, 101, 173, 0.12);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.acvw-template-card-treatment .acvw-template-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 0 20px;
    color: var(--acvw-template-primary);
    background: var(--acvw-template-primary-soft);
    border: 1px solid rgba(47, 101, 173, 0.12);
    border-radius: 18px;
}

.acvw-template-card-treatment .acvw-template-icon i {
    font-size: 23px;
}

.acvw-template-card-treatment .acvw-template-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.acvw-template-card-treatment .acvw-template-card-copy {
    position: relative;
    z-index: 1;
    width: 100%;
}

.acvw-template-card-treatment .acvw-template-card-title {
    margin: 0 0 10px;
    color: var(--acvw-template-ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.55;
    text-align: start;
}

.acvw-template-card-treatment .acvw-template-card-description {
    max-width: none;
    margin: 0;
    color: var(--acvw-template-muted);
    font-size: 13.5px;
    line-height: 1.9;
    text-align: start;
}

/* Keep per-item icon colors from Elementor compatible with template icons. */
.acvw-template .acvw-template-icon svg {
    fill: currentColor;
}

/* --------------------------------------------------------------------------
 * RTL / LTR details
 * -------------------------------------------------------------------------- */

.acvw-template[dir="rtl"] .acvw-template-card-treatment .acvw-template-card-inner,
.acvw-template[dir="rtl"] .acvw-template-card-copy {
    text-align: right;
}

.acvw-template[dir="ltr"] .acvw-template-card-treatment .acvw-template-card-inner,
.acvw-template[dir="ltr"] .acvw-template-card-copy {
    text-align: left;
}

.acvw-template-hero-benefits[dir="rtl"] .acvw-template-card-copy,
.acvw-template-hero-benefits[dir="ltr"] .acvw-template-card-copy {
    text-align: center !important;
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .acvw-template-hero-benefits {
        margin-top: -40px;
        padding-inline: 20px;
    }

    .acvw-template-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 940px);
        border-radius: 20px;
    }

    .acvw-template-card-benefit:nth-child(2n)::after {
        display: none;
    }

    .acvw-template-card-benefit:nth-child(n + 3)::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 24px;
        height: 1px;
        background: linear-gradient(90deg, rgba(228, 235, 245, 0), var(--acvw-template-line) 16%, var(--acvw-template-line) 84%, rgba(228, 235, 245, 0));
    }

    .acvw-template-card-benefit .acvw-template-card-inner {
        min-height: 148px;
        padding-block: 20px 18px;
    }

    .acvw-template-treatment-approach {
        padding: 52px 0 60px;
    }

    .acvw-template-treatment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .acvw-template-hero-benefits {
        margin-top: -20px;
        padding-inline: 14px;
    }

    .acvw-template-benefits-grid {
        grid-template-columns: 1fr;
        width: min(100%, 560px);
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(31, 55, 83, .085);
    }

    .acvw-template-card-benefit::after {
        display: none !important;
    }

    .acvw-template-card-benefit:nth-child(n + 2)::before,
    .acvw-template-card-benefit:nth-child(n + 3)::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 24px;
        height: 1px;
        background: linear-gradient(90deg, rgba(228, 235, 245, 0), var(--acvw-template-line) 16%, var(--acvw-template-line) 84%, rgba(228, 235, 245, 0));
    }

    .acvw-template-card-benefit .acvw-template-card-inner {
        min-height: 0;
        gap: 8px;
        padding: 19px 18px 18px;
    }

    .acvw-template-card-benefit .acvw-template-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .acvw-template-card-benefit .acvw-template-icon i {
        font-size: 20px;
    }

    .acvw-template-card-benefit .acvw-template-icon svg {
        width: 21px;
        height: 21px;
    }

    .acvw-template-treatment-approach {
        padding: 42px 0 48px;
    }

    .acvw-template-treatment-header {
        margin-bottom: 26px;
        padding-inline: 8px;
    }

    .acvw-template-heading {
        font-size: 28px;
    }

    .acvw-template-intro {
        font-size: 13px;
        line-height: 1.85;
    }

    .acvw-template-treatment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .acvw-template-card-treatment .acvw-template-card-inner {
        min-height: 0;
        padding: 23px 20px 24px;
        border-radius: 17px;
    }

    .acvw-template-card-number {
        top: 18px;
        inset-inline-end: 18px;
        font-size: 36px;
    }

    .acvw-template-card-treatment .acvw-template-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
        border-radius: 16px;
    }
}
