.acdb-template {
    --acdb-template-blue: #1769e8;
    --acdb-template-blue-dark: #0f56c8;
    --acdb-template-text: #1b2430;
    --acdb-template-muted: #667085;
    --acdb-template-border: rgba(23, 105, 232, .14);
    position: relative;
    width: 100%;
    color: var(--acdb-template-text);
}

.acdb-template[dir="rtl"] {
    direction: rtl;
}

.acdb-template[dir="ltr"] {
    direction: ltr;
}

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

.acdb-template-shell {
    position: relative;
    display: grid;
    align-items: center;
    gap: 54px;
    width: 100%;
    /* Keep physical left/right column placement independent from RTL/LTR text. */
    direction: ltr;
}

.acdb-template-home_overview {
    padding: 30px;
    border: 1px solid rgba(23, 105, 232, .08);
    border-radius: 26px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 52%, #f9fcff 100%);
    box-shadow: 0 18px 50px rgba(38, 83, 140, .08);
    overflow: hidden;
}

/* Home Overview: image_position now controls the physical media side. */
.acdb-template-home_overview.acdb-template-image-left .acdb-template-shell {
    grid-template-columns: minmax(330px, .85fr) minmax(0, 1fr);
    grid-template-areas: "media content";
}

.acdb-template-home_overview.acdb-template-image-right .acdb-template-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
    grid-template-areas: "content media";
}

.acdb-template-home_overview .acdb-template-content {
    grid-area: content;
    padding: 18px 8px 18px 10px;
}

.acdb-template-home_overview .acdb-template-media {
    grid-area: media;
}

.acdb-template-about_detailed {
    padding: 28px 32px;
    border: 1px solid rgba(35, 68, 112, .07);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(39, 69, 107, .07);
    overflow: visible;
}

/* About Detailed: same physical positioning rule as Home Overview. */
.acdb-template-about_detailed.acdb-template-image-left .acdb-template-shell {
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "media content";
}

.acdb-template-about_detailed.acdb-template-image-right .acdb-template-shell {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    grid-template-areas: "content media";
}

.acdb-template-about_detailed .acdb-template-media {
    grid-area: media;
}

.acdb-template-about_detailed .acdb-template-content {
    grid-area: content;
    padding: 10px 8px;
}

.acdb-template-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    text-align: start;
}

/* Restore content direction after the shell is pinned to physical LTR geometry. */
.acdb-template[dir="rtl"] .acdb-template-content,
.acdb-template[dir="rtl"] .acdb-template-media {
    direction: rtl;
}

.acdb-template[dir="ltr"] .acdb-template-content,
.acdb-template[dir="ltr"] .acdb-template-media {
    direction: ltr;
}

.acdb-template[dir="rtl"] .acdb-template-content {
    text-align: right;
}

.acdb-template[dir="ltr"] .acdb-template-content {
    text-align: left;
}

.acdb-template-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(23, 105, 232, .08);
    color: var(--acdb-template-blue);
    font-size: 13px;
    font-weight: 700;
}

.acdb-template-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: .28em;
    margin: 0 0 22px;
    color: var(--acdb-template-text);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.35;
    text-align: start;
}

.acdb-template-heading-highlight {
    color: var(--acdb-template-blue);
}

.acdb-template-heading-underlined {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.acdb-template-heading-underlined::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--acdb-template-blue);
}

.acdb-template-description {
    color: var(--acdb-template-muted);
    font-size: 16px;
    line-height: 2.05;
    text-align: start;
}

.acdb-template-description p {
    margin: 0 0 16px;
}

.acdb-template-description p:last-child {
    margin-bottom: 0;
}

.acdb-template-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 24px;
    padding: 8px 22px;
    border: 1px solid rgba(23, 105, 232, .65);
    border-radius: 8px;
    background: #fff;
    color: var(--acdb-template-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.acdb-template-button:hover,
.acdb-template-button:focus-visible {
    border-color: var(--acdb-template-blue);
    background: var(--acdb-template-blue);
    color: #fff;
    transform: translateY(-1px);
}

.acdb-template-media {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 12px;
}

.acdb-template-image-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #edf3f9;
    box-shadow: 0 16px 34px rgba(27, 59, 99, .12);
}

.acdb-template-home_overview .acdb-template-image-frame {
    min-height: 390px;
}

.acdb-template-about_detailed .acdb-template-image-frame {
    min-height: 410px;
}

.acdb-template-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

.acdb-template-dots {
    position: absolute;
    top: 2px;
    z-index: 1;
    width: 92px;
    height: 92px;
    opacity: .75;
    background-image: radial-gradient(circle, rgba(23, 105, 232, .7) 2px, transparent 2.5px);
    background-size: 14px 14px;
    pointer-events: none;
}

.acdb-template-image-left .acdb-template-dots {
    right: auto;
    left: 0;
}

.acdb-template-image-right .acdb-template-dots {
    right: 0;
    left: auto;
}

.acdb-template-quote {
    position: absolute;
    z-index: 4;
    bottom: -32px;
    width: min(82%, 330px);
    padding: 20px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2874ee, #165fd8);
    color: #fff;
    box-shadow: 0 18px 34px rgba(17, 83, 181, .24);
    text-align: start;
}

.acdb-template-image-left .acdb-template-quote {
    right: auto;
    left: -10px;
}

.acdb-template-image-right .acdb-template-quote {
    right: -10px;
    left: auto;
}

.acdb-template-quote-mark {
    position: absolute;
    top: 8px;
    inset-inline-start: 14px;
    color: rgba(255, 255, 255, .94);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.acdb-template-quote p {
    margin: 0 0 14px;
    padding-inline-start: 24px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
}

.acdb-template-quote-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.7;
}

.acdb-template-quote-author strong {
    font-size: 13px;
}

.acdb-template-quote-author span {
    opacity: .86;
}

@media (max-width: 1024px) {
    .acdb-template-shell,
    .acdb-template-home_overview .acdb-template-shell,
    .acdb-template-about_detailed .acdb-template-shell {
        gap: 34px;
    }

    .acdb-template-home_overview {
        padding: 24px;
    }

    .acdb-template-home_overview.acdb-template-image-left .acdb-template-shell {
        grid-template-columns: minmax(290px, .8fr) minmax(0, 1fr);
    }

    .acdb-template-home_overview.acdb-template-image-right .acdb-template-shell {
        grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr);
    }

    .acdb-template-about_detailed.acdb-template-image-left .acdb-template-shell {
        grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    }

    .acdb-template-about_detailed.acdb-template-image-right .acdb-template-shell {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    }

    .acdb-template-image-frame,
    .acdb-template-home_overview .acdb-template-image-frame,
    .acdb-template-about_detailed .acdb-template-image-frame {
        min-height: 340px;
    }

    .acdb-template-quote {
        width: min(88%, 300px);
        padding: 17px 18px;
    }
}

@media (max-width: 767px) {
    .acdb-template-home_overview,
    .acdb-template-about_detailed {
        padding: 20px 16px 30px;
        border-radius: 20px;
        overflow: hidden;
    }

    .acdb-template-home_overview .acdb-template-shell,
    .acdb-template-about_detailed .acdb-template-shell {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .acdb-template-home_overview .acdb-template-content {
        order: 1;
        width: 100%;
        padding: 0;
    }

    .acdb-template-home_overview .acdb-template-media {
        order: 2;
        width: 100%;
    }

    .acdb-template-about_detailed .acdb-template-media {
        order: 1;
        width: 100%;
    }

    .acdb-template-about_detailed .acdb-template-content {
        order: 2;
        width: 100%;
        padding: 0;
    }

    .acdb-template-heading {
        margin-bottom: 16px;
        font-size: clamp(26px, 8vw, 34px);
    }

    .acdb-template-description {
        font-size: 15px;
        line-height: 1.95;
    }

    .acdb-template-media {
        padding: 8px 8px 48px;
    }

    .acdb-template-image-frame,
    .acdb-template-home_overview .acdb-template-image-frame,
    .acdb-template-about_detailed .acdb-template-image-frame {
        min-height: 320px;
        border-radius: 16px;
    }

    .acdb-template-quote,
    .acdb-template-image-left .acdb-template-quote,
    .acdb-template-image-right .acdb-template-quote {
        right: 18px;
        left: 18px;
        bottom: 4px;
        width: auto;
    }

    .acdb-template-dots,
    .acdb-template-image-left .acdb-template-dots,
    .acdb-template-image-right .acdb-template-dots {
        right: auto;
        left: 0;
        width: 76px;
        height: 76px;
        background-size: 12px 12px;
    }

    .acdb-template-button {
        width: 100%;
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acdb-template-button {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
 * Home Overview — homepage reference fidelity pass
 * -------------------------------------------------------------------------- */

.acdb-template-home_overview {
    width: auto;
    max-width: none;
    margin: 18px calc(50% - 50vw) 0;
    padding: 0 clamp(28px, 4.25vw, 72px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.acdb-template-home_overview .acdb-template-shell {
    width: min(100%, 1480px);
    min-height: 430px;
    margin-inline: auto;
    padding: clamp(28px, 3vw, 42px) clamp(30px, 3.5vw, 52px) clamp(38px, 3.2vw, 48px);
    gap: clamp(34px, 4vw, 68px);
    border: 1px solid rgba(23, 105, 232, .065);
    border-radius: 27px;
    background:
        radial-gradient(circle at 86% 18%, rgba(23, 105, 232, .08), transparent 31%),
        linear-gradient(135deg, #f8fbff 0%, #f1f7ff 52%, #f8fbff 100%);
    box-shadow: 0 18px 46px rgba(42, 78, 125, .075);
    overflow: hidden;
}

.acdb-template-home_overview.acdb-template-image-left .acdb-template-shell {
    grid-template-columns: minmax(350px, .93fr) minmax(0, 1.07fr);
}

.acdb-template-home_overview.acdb-template-image-right .acdb-template-shell {
    grid-template-columns: minmax(0, 1.07fr) minmax(350px, .93fr);
}

.acdb-template-home_overview .acdb-template-content {
    align-self: center;
    max-width: 650px;
    padding: 10px 4px;
}

.acdb-template-home_overview.acdb-template-image-left .acdb-template-content {
    justify-self: end;
}

.acdb-template-home_overview.acdb-template-image-right .acdb-template-content {
    justify-self: start;
}

.acdb-template-home_overview .acdb-template-eyebrow {
    min-height: 27px;
    margin-bottom: 13px;
    padding: 4px 11px;
    border-radius: 7px;
    background: rgba(23, 105, 232, .075);
    color: #1769e8;
    font-size: 12px;
    font-weight: 750;
}

.acdb-template-home_overview .acdb-template-heading {
    gap: .22em;
    margin-bottom: 19px;
    color: #202936;
    font-size: clamp(29px, 2.45vw, 38px);
    font-weight: 800;
    line-height: 1.38;
}

.acdb-template-home_overview .acdb-template-heading-highlight {
    color: #1769e8;
}

.acdb-template-home_overview .acdb-template-description {
    max-width: 610px;
    color: #5f6d80;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.95;
}

.acdb-template-home_overview .acdb-template-description p {
    margin-bottom: 13px;
}

.acdb-template-home_overview .acdb-template-button {
    min-height: 40px;
    gap: 9px;
    margin-top: 19px;
    padding: 7px 18px;
    border-color: rgba(23, 105, 232, .58);
    border-radius: 7px;
    font-size: 13px;
    box-shadow: 0 5px 16px rgba(23, 105, 232, .055);
}

.acdb-template-home_overview .acdb-template-button::after {
    content: "‹";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-1px);
}

.acdb-template-home_overview[dir="ltr"] .acdb-template-button::after {
    content: "›";
}

.acdb-template-home_overview .acdb-template-media {
    align-self: stretch;
    display: flex;
    align-items: center;
    min-height: 360px;
    padding: 8px 18px 34px;
}

.acdb-template-home_overview .acdb-template-image-frame {
    width: 100%;
    min-height: 350px;
    border-radius: 17px;
    background: #e9f0f7;
    box-shadow: 0 14px 30px rgba(27, 59, 99, .10);
}

.acdb-template-home_overview .acdb-template-image-frame img {
    min-height: 350px;
    object-fit: cover;
}

.acdb-template-home_overview .acdb-template-dots {
    top: 14px;
    width: 92px;
    height: 92px;
    opacity: .62;
    background-image: radial-gradient(circle, rgba(23, 105, 232, .58) 1.8px, transparent 2.3px);
    background-size: 13px 13px;
}

.acdb-template-home_overview.acdb-template-image-right .acdb-template-dots {
    right: 0;
}

.acdb-template-home_overview.acdb-template-image-left .acdb-template-dots {
    left: 0;
}

.acdb-template-home_overview .acdb-template-quote {
    bottom: 0;
    width: min(78%, 320px);
    padding: 18px 20px 17px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2d78ed 0%, #1765df 58%, #1458ca 100%);
    box-shadow: 0 16px 32px rgba(17, 83, 181, .22);
}

.acdb-template-home_overview.acdb-template-image-right .acdb-template-quote {
    right: -4px;
    left: auto;
}

.acdb-template-home_overview.acdb-template-image-left .acdb-template-quote {
    left: -4px;
    right: auto;
}

.acdb-template-home_overview .acdb-template-quote-mark {
    top: 7px;
    inset-inline-start: 14px;
    font-size: 31px;
}

.acdb-template-home_overview .acdb-template-quote p {
    margin-bottom: 11px;
    padding-inline-start: 22px;
    font-size: 12px;
    line-height: 1.8;
}

.acdb-template-home_overview .acdb-template-quote-author {
    gap: 0;
    font-size: 11px;
    line-height: 1.65;
}

.acdb-template-home_overview .acdb-template-quote-author strong {
    font-size: 12px;
}

@media (max-width: 1024px) {
    .acdb-template-home_overview {
        margin-top: 14px;
        padding-inline: 20px;
    }

    .acdb-template-home_overview .acdb-template-shell {
        min-height: 390px;
        padding: 26px 24px 34px;
        gap: 28px;
        border-radius: 23px;
    }

    .acdb-template-home_overview.acdb-template-image-left .acdb-template-shell {
        grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    }

    .acdb-template-home_overview.acdb-template-image-right .acdb-template-shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    }

    .acdb-template-home_overview .acdb-template-heading {
        font-size: clamp(27px, 3.6vw, 34px);
    }

    .acdb-template-home_overview .acdb-template-description {
        font-size: 13.5px;
    }

    .acdb-template-home_overview .acdb-template-media {
        min-height: 330px;
        padding: 6px 12px 30px;
    }

    .acdb-template-home_overview .acdb-template-image-frame,
    .acdb-template-home_overview .acdb-template-image-frame img {
        min-height: 320px;
    }

    .acdb-template-home_overview .acdb-template-quote {
        width: min(84%, 285px);
        padding: 15px 16px;
    }
}

@media (max-width: 767px) {
    .acdb-template-home_overview {
        margin-top: 10px;
        padding: 0 14px;
        border-radius: 0;
        overflow: visible;
    }

    .acdb-template-home_overview .acdb-template-shell {
        display: flex;
        min-height: 0;
        padding: 22px 18px 24px;
        gap: 24px;
        border-radius: 20px;
        overflow: hidden;
    }

    .acdb-template-home_overview .acdb-template-content {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .acdb-template-home_overview .acdb-template-heading {
        margin-bottom: 15px;
        font-size: clamp(25px, 8vw, 31px);
    }

    .acdb-template-home_overview .acdb-template-description {
        max-width: none;
        font-size: 13.5px;
        line-height: 1.9;
    }

    .acdb-template-home_overview .acdb-template-button {
        width: auto;
        min-width: 170px;
        margin-top: 17px;
    }

    .acdb-template-home_overview .acdb-template-media {
        width: 100%;
        min-height: 0;
        padding: 8px 8px 46px;
    }

    .acdb-template-home_overview .acdb-template-image-frame,
    .acdb-template-home_overview .acdb-template-image-frame img {
        min-height: 300px;
    }

    .acdb-template-home_overview .acdb-template-quote,
    .acdb-template-home_overview.acdb-template-image-left .acdb-template-quote,
    .acdb-template-home_overview.acdb-template-image-right .acdb-template-quote {
        right: 16px;
        left: 16px;
        bottom: 3px;
        width: auto;
    }

    .acdb-template-home_overview .acdb-template-dots,
    .acdb-template-home_overview.acdb-template-image-left .acdb-template-dots,
    .acdb-template-home_overview.acdb-template-image-right .acdb-template-dots {
        right: auto;
        left: 0;
        width: 72px;
        height: 72px;
        background-size: 11px 11px;
    }
}
