/*
 * Reference-fidelity layout for the approved About Doctor composition.
 *
 * This file owns only the geometry that must match the approved reference:
 * - viewport-wide About Hero with a constrained inner shell
 * - stable two-column Hero content/media stage
 * - four-card benefits strip that overlaps the Hero without viewport transforms
 * - Global Header grouping: brand + hamburger together, CTA on the opposite edge
 *
 * Legacy/default widget rendering is intentionally untouched.
 */

/* --------------------------------------------------------------------------
 * Shared safety
 * -------------------------------------------------------------------------- */

.acdh-template-about_video,
.acdh-template-about_video *,
.acvw-template-hero-benefits,
.acvw-template-hero-benefits *,
.acgh,
.acgh * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
 * About Doctor Hero — one full-bleed method only
 * -------------------------------------------------------------------------- */

.acdh-template-about_video {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    margin-inline: calc(50% - 50vw) !important;
    overflow: clip !important;
    background: linear-gradient(90deg, #eef6ff 0%, #f7fbff 44%, #ffffff 82%) !important;
}

.acdh-template-about_video .acdh-template-shell {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%) !important;
    grid-template-areas: "media content" !important;
    align-items: stretch !important;
    width: min(calc(100% - 80px), 1440px) !important;
    max-width: 1440px !important;
    min-height: 570px !important;
    margin-inline: auto !important;
    overflow: visible !important;
}

.acdh-template-about_video .acdh-template-media,
.acdh-template-about_video .acdh-template-about-content,
.acdh-template-about_video .acdh-template-content,
.acdh-template-about_video .acdh-template-stats,
.acdh-template-about_video .acdh-template-stat,
.acdh-template-about_video .acdh-template-title,
.acdh-template-about_video .acdh-template-description {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Media stage */
.acdh-template-about_video .acdh-template-media {
    grid-area: media !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-height: 570px !important;
    padding: 42px 24px 0 !important;
    overflow: visible !important;
}

.acdh-template-about_video .acdh-template-media-halo {
    width: min(84%, 470px) !important;
    max-width: 470px !important;
    bottom: 10px !important;
}

.acdh-template-about_video .acdh-template-image {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: min(100%, 540px) !important;
    height: auto !important;
    min-height: 520px !important;
    max-width: 100% !important;
}

.acdh-template-about_video .acdh-template-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 545px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
}

.acdh-template-about_video .acdh-template-media::before {
    left: 20px !important;
    top: 150px !important;
    width: 72px !important;
    height: 66px !important;
}

/* Floating video card is anchored to the media stage, not the viewport. */
.acdh-template-about_video .acdh-template-video-card {
    position: absolute !important;
    z-index: 5 !important;
    left: 10px !important;
    right: auto !important;
    top: 50% !important;
    width: 148px !important;
    max-width: calc(100% - 20px) !important;
    padding: 18px 14px 16px !important;
    transform: translateY(-38%) !important;
    border-radius: 16px !important;
}

/* Content column */
.acdh-template-about_video .acdh-template-about-content,
.acdh-template-about_video .acdh-template-content {
    grid-area: content !important;
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 70px 30px 78px 58px !important;
    overflow: visible !important;
    text-align: start !important;
}

.acdh-template-about_video[dir="rtl"] .acdh-template-about-content,
.acdh-template-about_video[dir="rtl"] .acdh-template-content {
    padding-right: 58px !important;
    padding-left: 30px !important;
}

.acdh-template-about_video .acdh-template-eyebrow {
    align-self: flex-start !important;
    margin-bottom: 15px !important;
}

.acdh-template-about_video .acdh-template-about-title,
.acdh-template-about_video .acdh-template-title {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important;
    font-size: clamp(38px, 3.2vw, 54px) !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere !important;
}

.acdh-template-about_video .acdh-template-description {
    width: 100% !important;
    max-width: 640px !important;
    margin-top: 20px !important;
    font-size: 15px !important;
    line-height: 2 !important;
    overflow-wrap: anywhere !important;
}

/* Stats must never enlarge the content column. */
.acdh-template-about_video .acdh-template-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 650px !important;
    margin-top: 30px !important;
    overflow: visible !important;
}

.acdh-template-about_video .acdh-template-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 0 16px !important;
    text-align: center !important;
    overflow: hidden !important;
}

.acdh-template-about_video .acdh-template-stat strong,
.acdh-template-about_video .acdh-template-stat > span:not(.acdh-template-stat-icon) {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

/* --------------------------------------------------------------------------
 * Four-card benefits strip — same shell, no left/translate centering
 * -------------------------------------------------------------------------- */

.acvw-template-hero-benefits {
    position: relative !important;
    z-index: 20 !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: -48px calc(50% - 50vw) 0 !important;
    padding: 0 40px !important;
    transform: none !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.acvw-template-hero-benefits .acvw-template-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: min(100%, 1440px) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(35, 105, 200, .08) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(31, 55, 83, .10) !important;
}

.acvw-template-hero-benefits .acvw-template-card-benefit {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
}

.acvw-template-hero-benefits .acvw-template-card-benefit:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    inset-block: 28px !important;
    inset-inline-end: 0 !important;
    width: 1px !important;
    background: #e4ebf5 !important;
}

.acvw-template-hero-benefits .acvw-template-card-benefit .acvw-template-card-inner,
.acvw-template-hero-benefits .acvw-template-card-benefit .acvw-template-card-inner:hover {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 158px !important;
    gap: 8px !important;
    padding: 20px 18px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    transform: none !important;
}

.acvw-template-hero-benefits .acvw-template-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    flex: 0 0 52px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #eef5ff !important;
    color: #1769e0 !important;
}

.acvw-template-hero-benefits .acvw-template-icon i {
    font-size: 21px !important;
}

.acvw-template-hero-benefits .acvw-template-icon svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

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

.acvw-template-hero-benefits .acvw-template-card-title {
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
}

.acvw-template-hero-benefits .acvw-template-card-description {
    width: 100% !important;
    max-width: 225px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
}

/* --------------------------------------------------------------------------
 * Global Header — brand + hamburger remain one compact group
 * -------------------------------------------------------------------------- */

.acgh-inner {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
}

.acgh-brand,
.acgh-menu,
.acgh-actions {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: auto !important;
}

.acgh-brand {
    flex: 0 1 auto !important;
}

.acgh-menu {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.acgh-actions {
    flex: 0 0 auto !important;
    margin-inline-start: auto !important;
}

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

@media (max-width: 1200px) {
    .acdh-template-about_video .acdh-template-shell {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%) !important;
        width: min(calc(100% - 56px), 1120px) !important;
        min-height: 540px !important;
    }

    .acdh-template-about_video .acdh-template-media {
        min-height: 540px !important;
        padding-inline: 16px !important;
    }

    .acdh-template-about_video .acdh-template-image {
        min-height: 490px !important;
    }

    .acdh-template-about_video .acdh-template-image img {
        max-height: 515px !important;
    }

    .acdh-template-about_video .acdh-template-about-content,
    .acdh-template-about_video .acdh-template-content,
    .acdh-template-about_video[dir="rtl"] .acdh-template-about-content,
    .acdh-template-about_video[dir="rtl"] .acdh-template-content {
        padding: 60px 24px 66px !important;
    }

    .acdh-template-about_video .acdh-template-video-card {
        left: 4px !important;
        width: 138px !important;
    }

    .acvw-template-hero-benefits {
        padding-inline: 28px !important;
    }
}

@media (max-width: 1024px) {
    .acdh-template-about_video .acdh-template-shell {
        grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
        width: min(calc(100% - 40px), 920px) !important;
        min-height: 500px !important;
    }

    .acdh-template-about_video .acdh-template-media {
        min-height: 500px !important;
    }

    .acdh-template-about_video .acdh-template-image {
        min-height: 450px !important;
    }

    .acdh-template-about_video .acdh-template-image img {
        max-height: 475px !important;
    }

    .acdh-template-about_video .acdh-template-about-title,
    .acdh-template-about_video .acdh-template-title {
        font-size: clamp(34px, 4.2vw, 46px) !important;
    }

    .acdh-template-about_video .acdh-template-stat {
        padding-inline: 9px !important;
    }

    .acvw-template-hero-benefits {
        margin-top: -38px !important;
        padding-inline: 24px !important;
    }

    .acvw-template-hero-benefits .acvw-template-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 920px !important;
    }

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

    .acvw-template-hero-benefits .acvw-template-card-benefit:nth-child(n + 3)::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        inset-inline: 22px !important;
        height: 1px !important;
        background: #e4ebf5 !important;
    }
}

@media (max-width: 767px) {
    .acdh-template-about_video {
        margin-inline: calc(50% - 50vw) !important;
        overflow: hidden !important;
    }

    .acdh-template-about_video .acdh-template-shell {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .acdh-template-about_video .acdh-template-about-content,
    .acdh-template-about_video .acdh-template-content,
    .acdh-template-about_video[dir="rtl"] .acdh-template-about-content,
    .acdh-template-about_video[dir="rtl"] .acdh-template-content {
        order: 1 !important;
        align-items: center !important;
        padding: 36px 20px 26px !important;
        text-align: center !important;
    }

    .acdh-template-about_video .acdh-template-eyebrow {
        align-self: center !important;
    }

    .acdh-template-about_video .acdh-template-about-title,
    .acdh-template-about_video .acdh-template-title {
        max-width: 100% !important;
        font-size: clamp(31px, 9vw, 41px) !important;
        text-align: center !important;
    }

    .acdh-template-about_video .acdh-template-description {
        margin-top: 16px !important;
        font-size: 14px !important;
        text-align: center !important;
    }

    .acdh-template-about_video .acdh-template-stats {
        grid-template-columns: 1fr !important;
        max-width: 360px !important;
        margin-top: 22px !important;
    }

    .acdh-template-about_video .acdh-template-stat {
        flex-direction: row !important;
        justify-content: center !important;
        min-height: 48px !important;
        padding: 10px 8px !important;
        border-inline-start: 0 !important;
        border-top: 1px solid #d9e7fb !important;
        overflow: visible !important;
    }

    .acdh-template-about_video .acdh-template-stat:first-child {
        border-top: 0 !important;
    }

    .acdh-template-about_video .acdh-template-media {
        order: 2 !important;
        min-height: 400px !important;
        padding: 16px 20px 0 !important;
    }

    .acdh-template-about_video .acdh-template-image {
        width: min(100%, 380px) !important;
        min-height: 380px !important;
    }

    .acdh-template-about_video .acdh-template-image img {
        max-height: 395px !important;
    }

    .acdh-template-about_video .acdh-template-media-halo {
        width: min(78vw, 330px) !important;
    }

    .acdh-template-about_video .acdh-template-video-card {
        left: 16px !important;
        top: 88px !important;
        width: 124px !important;
        transform: none !important;
    }

    .acvw-template-hero-benefits {
        margin-top: -22px !important;
        padding-inline: 14px !important;
    }

    .acvw-template-hero-benefits .acvw-template-benefits-grid {
        grid-template-columns: 1fr !important;
        max-width: 560px !important;
        border-radius: 18px !important;
    }

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

    .acvw-template-hero-benefits .acvw-template-card-benefit:nth-child(n + 2)::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        inset-inline: 18px !important;
        height: 1px !important;
        background: #e4ebf5 !important;
    }

    .acvw-template-hero-benefits .acvw-template-card-benefit .acvw-template-card-inner {
        min-height: 126px !important;
        padding: 17px 16px !important;
    }

    .acgh-inner {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .acgh-brand {
        flex: 1 1 auto !important;
    }

    .acgh-menu {
        flex: 0 0 auto !important;
    }

    .acgh-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-inline-start: auto !important;
    }

    .acgh-actions-empty {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .acgh-actions:not(.acgh-actions-empty) {
        display: none !important;
    }
}
