/* ACTOPIM Connector shortcode overrides.
 *
 * Add site-independent shortcode styles here. For site-specific styling,
 * override this file through the actopim_connector_shortcode_css_url and
 * actopim_connector_shortcode_css_path filters.
 */


/* Base safety styles. Full corporate design CSS can be added below or redirected with filters. */
.actopim-corporate-section,
.actopim-corporate-section * {
    box-sizing: border-box;
}

.actopim-corporate-section {
    width: 100%;
    max-width: 100%;
}

.actopim-corporate-section img {
    max-width: 100%;
    height: auto;
}

body.actopim-case-study-layout {
    --actopim-product-detail-width: 1720px;
    --actopim-product-detail-gutter: 48px;
}

body.actopim-case-study-layout #content > .container,
body.actopim-case-study-layout #content .container,
body.actopim-case-study-layout .site-content > .container,
body.actopim-case-study-layout .site-content .container,
body.actopim-case-study-layout .pxl-main > .container,
body.actopim-case-study-layout .pxl-main .container,
body.actopim-case-study-layout .pxl-main-content > .container,
body.actopim-case-study-layout .pxl-main-content .container,
body.actopim-case-study-layout .main-content > .container,
body.actopim-case-study-layout main > .container,
body.actopim-case-study-layout .container:has(.actopim-case-study) {
    width: min(calc(100% - var(--actopim-product-detail-gutter)), var(--actopim-product-detail-width)) !important;
    max-width: var(--actopim-product-detail-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.actopim-case-study-layout .pxl-content-area,
body.actopim-case-study-layout #primary,
body.actopim-case-study-layout .site-main,
body.actopim-case-study-layout .content-row {
    width: 100% !important;
    max-width: var(--actopim-product-detail-width) !important;
    flex: 0 0 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.actopim-case-study-layout #secondary,
body.actopim-case-study-layout .pxl-sidebar-area,
body.actopim-case-study-layout aside.sidebar {
    display: none !important;
}

body.actopim-case-study-layout .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1720px;
}

body.actopim-case-study-layout .e-con.e-parent {
    --container-max-width: 1720px;
}

.actopim-case-study {
    width: 100%;
    max-width: 1720px;
    margin: 16px auto 64px;
    color: #263445;
    font-family: inherit;
    line-height: 1.7;
}

body:not(.actopim-case-study-layout) .actopim-case-study {
    width: min(calc(100vw - 48px), 1720px);
    max-width: none;
    position: relative;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
}

.actopim-case-study *,
.actopim-case-study *::before,
.actopim-case-study *::after {
    box-sizing: border-box;
}

.actopim-case-study-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 26px;
}

.actopim-case-study-lead-no-image {
    grid-template-columns: minmax(0, 1fr);
}

.actopim-case-study-hero,
.actopim-case-study-header {
    min-width: 0;
    border: 1px solid #dfe5ee;
    background: #fff;
}

.actopim-case-study-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0;
    overflow: hidden;
}

.actopim-case-study-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 600px;
    min-height: 380px;
    object-fit: contain;
}

.actopim-case-study-header {
    padding: clamp(22px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.actopim-case-study-eyebrow {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 5px 11px;
    font-size: .84rem;
    font-weight: 700;
    color: #17469e;
    background: #eff4fb;
    letter-spacing: .025em;
}

.actopim-case-study-title {
    margin: 0 0 22px;
    font-size: clamp(1.6rem, 2.6vw, 2.65rem);
    font-weight: 700;
    line-height: 1.28;
    color: #162b3c;
    overflow-wrap: anywhere;
}

.actopim-case-study-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.actopim-case-study-facts > div {
    min-width: 0;
    padding: 12px 15px;
    background: #f6f8fb;
    border: 1px solid #e4e9f0;
}

.actopim-case-study-facts strong,
.actopim-case-study-facts span {
    display: block;
    overflow-wrap: anywhere;
}

.actopim-case-study-facts strong {
    margin-bottom: 4px;
    font-size: .79rem;
    color: #647787;
}

.actopim-case-study-facts span {
    font-weight: 600;
    color: #25374a;
}

.actopim-case-study-researchers {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e4e9f0;
    overflow-wrap: anywhere;
}

.actopim-case-study-researchers strong {
    color: #17469e;
}

.actopim-case-study-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.actopim-case-study-section,
.actopim-case-study-references {
    min-width: 0;
    padding: clamp(20px, 2.4vw, 36px);
    background: #fff;
    border: 1px solid #dfe5ee;
}

.actopim-case-study-section h3,
.actopim-case-study-references h3 {
    margin: 0 0 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e8edf3;
    color: #17469e;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
}

.actopim-case-study-content {
    overflow-wrap: anywhere;
}

.actopim-case-study-content > :first-child {
    margin-top: 0;
}

.actopim-case-study-content > :last-child {
    margin-bottom: 0;
}

.actopim-case-study-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 16px;
    margin-top: 22px;
}

.actopim-case-study-image {
    min-width: 0;
    margin: 0;
    background: #f7f9fa;
    border: 1px solid #e5ecef;
    overflow: hidden;
}

.actopim-case-study-image a {
    display: block;
}

.actopim-case-study-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform .2s ease;
}

.actopim-case-study-image a:hover img {
    transform: scale(1.02);
}

.actopim-case-study-image figcaption {
    padding: 12px 15px 15px;
    font-size: .9rem;
    background: #fff;
}

.actopim-case-study-image time {
    display: block;
    font-weight: 700;
    color: #526a7a;
}

.actopim-case-study-image figcaption p {
    margin: 5px 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.actopim-case-study-references {
    margin-top: 16px;
}

.actopim-case-study-references ol {
    margin: 0;
    padding-left: 22px;
    overflow-wrap: anywhere;
}

.actopim-case-study-references li + li {
    margin-top: 8px;
}

.actopim-case-study-message {
    padding: 15px 18px;
    background: #f4f8fa;
    border-left: 3px solid #17469e;
}

@media (max-width: 980px) {
    .actopim-case-study-lead {
        grid-template-columns: minmax(0, 1fr);
    }

    .actopim-case-study-hero img {
        min-height: 0;
        max-height: 520px;
    }
}

@media (max-width: 650px) {
    body.actopim-case-study-layout {
        --actopim-product-detail-gutter: 24px;
    }

    .actopim-case-study {
        margin-top: 8px;
    }

    body:not(.actopim-case-study-layout) .actopim-case-study {
        width: calc(100vw - 24px);
    }

    .actopim-case-study-gallery {
        grid-template-columns: 1fr;
    }

    .actopim-case-study-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}
