/* Responsive presentation for CMS-managed page content.
   Built on Bootstrap 5; no Bootstrap 3 or jQuery code is loaded. */

:root {
    --systemstod-yellow: #fab400;
    --systemstod-yellow-dark: #d89f0f;
    --systemstod-text: #555;
    --systemstod-muted: #7f7f7f;
    --systemstod-light: #ededed;
}

/* Visual Block Grid pages */
.page-container.page-container--visual {
    width: min(calc(100% - 2rem), 1170px);
    margin-inline: auto;
    padding: 35px 0 60px;
    min-width: 0;
    overflow-wrap: anywhere;
    background: #fff;
}

body:has(.page-container--visual) { background: #fff; }

.page-container.page-container--narrow {
    width: min(calc(100% - 2rem), 860px);
}

.page-container.page-container--wide {
    width: min(calc(100% - 2rem), 1440px);
}

.page-container--visual img {
    max-width: 100%;
}

.visual-contact-form .contact-form-section {
    margin: 0;
}

.visual-page-builder {
    margin-top: 1.5rem;
}
.page-container--visual > .visual-page-builder:first-child { margin-top: 0; }
.page-container--visual > .visually-hidden + .visual-page-builder { margin-top: 0; }

.visual-page-builder .umb-block-grid__layout-container {
    display: grid;
    grid-template-columns: repeat(var(--umb-block-grid--grid-columns, 12), minmax(0, 1fr));
    gap: 1.5rem;
}

.visual-page-builder .umb-block-grid__layout-item {
    grid-column: span min(var(--umb-block-grid--item-column-span, 12), var(--umb-block-grid--grid-columns, 12));
    min-width: 0;
    scroll-margin-top: calc(var(--systemstod-header-offset, 110px) + 1.5rem);
}
.visual-page-builder .umb-block-grid__layout-item:target:focus { outline: 2px solid #846000; outline-offset: 4px; }

.visual-block {
    height: 100%;
    box-sizing: border-box;
}

.visual-columns__grid { display: grid; grid-template-columns: repeat(var(--visual-columns, 3), minmax(0, 1fr)); gap: 1.5rem; }
.visual-columns__item { min-width: 0; }
.visual-columns .visual-image-text__layout { grid-template-columns: minmax(0, 1fr); align-content: start; }
.visual-columns .visual-image-text__media { order: 0; }
.visual-columns .visual-image-text__content { order: 1; align-self: start; padding: 1rem 0; }
.visual-columns .visual-image img { min-height: 0; }
@media (max-width: 767.98px) {
    .visual-columns__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Logo/product/customer cards share a consistent, editable presentation. */
.visual-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 2vw, 2rem);
    border: 1px solid #dedede;
    border-radius: .45rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 5%);
    text-align: center;
    min-width: 0;
}
.visual-card { container-type: inline-size; }
.visual-card__image { display: flex; align-items: center; justify-content: center; height: 130px; margin-bottom: 1rem; }
.visual-card__image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.visual-card__body { display: flex; flex-direction: column; min-width: 0; }
.visual-card h2 { margin: 0 0 .75rem; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.25; }
.visual-card p { margin: 0; white-space: pre-line; line-height: 1.6; }
.visual-card__action { margin-top: auto; padding-top: 1rem; text-align: center; }
.visual-card .btn { max-width: 100%; white-space: normal; }
.visual-card--case .visual-card__image { height: 110px; }
.visual-card--case .visual-card__image img { max-width: min(100%, 240px); }
.visual-card--case .visual-card__action { margin-top: 0; }

/* Wide cards group image, description and action without enlarging logos. */
.visual-card__layout { display: grid; grid-template-rows: auto 1fr; gap: 1rem; flex: 1; }
.visual-card__layout .visual-card__image { margin-bottom: 0; }
.visual-card__layout:has(.visual-card__image) { grid-template-columns: minmax(0, 1fr); }
.visual-card__layout:not(:has(.visual-card__image)) { grid-template-rows: 1fr; }
@container (min-width: 640px) {
    .visual-card__layout:has(.visual-card__image) { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); grid-template-rows: 1fr; align-items: center; }
    .visual-card__body { text-align: left; }
    .visual-card__action { text-align: left; }
}

.visual-image-text { container-type: inline-size; background: #fff; overflow: hidden; }
.visual-image-text__layout { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; }
.visual-image-text__media { min-width: 0; display: flex; align-items: center; justify-content: center; }
.visual-image-text__media img { width: 100%; height: 100%; max-height: 480px; min-height: 220px; object-fit: cover; }
.visual-image-text--logo .visual-image-text__media { padding: 1.5rem; }
.visual-image-text--logo .visual-image-text__media img { object-fit: contain; }
.visual-image-text__content { min-width: 0; align-self: center; padding: clamp(1.5rem, 3vw, 3rem); }
.visual-image-text h2 { margin: 0 0 1rem; line-height: 1.2; font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.visual-image-text p { line-height: 1.65; white-space: pre-line; }
.visual-image-text .btn { max-width: 100%; white-space: normal; }
@container (min-width: 560px) {
    .visual-image-text__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visual-image-text--right .visual-image-text__media { order: 2; }
    .visual-image-text--right .visual-image-text__content { order: 1; }
    .visual-image-text--no-image .visual-image-text__layout { grid-template-columns: minmax(0, 1fr); }
}
.visual-quote { display: flex; flex-direction: column; margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid #dedede; border-top: 4px solid var(--systemstod-yellow); border-radius: .5rem; min-width: 0; }
.visual-quote__image { width: 110px; height: 130px; object-fit: contain; flex: 0 0 auto; border-radius: .4rem; }
.visual-quote__identity { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
.visual-quote__identity-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.visual-quote blockquote { margin: 0 0 1.5rem; padding: 0; border: 0; }
.visual-quote blockquote p { margin: 0; white-space: pre-line; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.6; }
.visual-quote figcaption { display: flex; color: #555; }

.visual-hero {
    padding: clamp(2rem, 6vw, 5rem);
    color: #454545;
    background: #fff;
}

.visual-hero h1,
.visual-hero h2 {
    max-width: 18ch;
    margin: 0 0 1rem;
    color: inherit;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
}
.visual-hero--compact { padding: clamp(1rem, 3vw, 2rem) 0; }
.visual-hero--compact h1, .visual-hero--compact h2 { max-width: 28ch; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.visual-hero > :last-child { margin-bottom: 0; }

.visual-eyebrow {
    margin-bottom: .9rem;
    color: #846000;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.visual-lead {
    max-width: 62ch;
    color: var(--systemstod-text);
    font-size: 1.15rem;
}

.visual-text,
.visual-image {
    overflow: hidden;
    background: #fff;
}

.visual-text {
    padding: clamp(1rem, 2.5vw, 2rem) 0;
}
.visual-text > :last-child { margin-bottom: 0; }

.visual-text h2,
.visual-cta h2 {
    margin-top: 0;
}

.visual-image {
    margin: 0;
}

.visual-image img,
.visual-image-placeholder {
    display: block;
    width: 100%;
    min-height: 260px;
    object-fit: cover;
}

.visual-image img { height: auto; }

.visual-image-placeholder {
    display: grid;
    place-items: center;
    color: #536779;
    background: #e9eef3;
    font-weight: 700;
}

.visual-image figcaption {
    padding: .85rem 1rem;
}

.visual-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #454545;
    border-radius: .45rem;
    border-top: 4px solid var(--systemstod-yellow);
    background: #f7f7f7;
}

.visual-cta h2,
.visual-cta p {
    color: inherit;
}

.visual-cta > div { min-width: 0; }
.visual-cta > .btn { flex-shrink: 0; }

/* Wrap long labels at spaces, never split short action words into letters. */
.page-container .btn,
.home-html-content .btn {
    min-width: min(100%, 6.5rem);
    max-width: 100%;
    padding: .65rem 1rem;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 767.98px) {
    .visual-page-builder .umb-block-grid__layout-container {
        grid-template-columns: 1fr;
    }

    .visual-page-builder .umb-block-grid__layout-item {
        grid-column: 1;
    }

    .visual-hero,
    .visual-text,
    .visual-image,
    .visual-cta {
        border-radius: .75rem;
    }

    .visual-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-container:has(.page-html-content) {
    padding: 0;
}

.page-html-content > .row {
    margin-inline: 0;
}

/* Orchard content was authored against Bootstrap 3, where columns floated even
   without a row. The migration now repairs the markup; this selector also keeps
   already-saved CMS HTML correct until an editor next republishes it. */
.page-html-content :where(div, section, article):has(> [class*="col-"]):not(.row) {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    margin-left: calc(-.5 * var(--bs-gutter-x, 1.5rem));
}

.page-html-content :where(div, section, article):has(> [class*="col-"]) > [class*="col-"] {
    padding-right: calc(.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(.5 * var(--bs-gutter-x, 1.5rem));
    margin-bottom: var(--bs-gutter-x, 1.5rem);
}

.page-html-content > .content-section > .row {
    max-width: 1120px;
    margin-inline: auto;
}

/* Imported nested sections already have the outer section's horizontal gutter.
   Repeating it makes text and video unnecessarily narrow, especially on mobile. */
.page-html-content .content-section .content-section { padding-inline: 0; }

.page-html-content,
.home-html-content {
    color: var(--systemstod-text);
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.page-html-content *,
.home-html-content * {
    box-sizing: border-box;
}

.page-html-content img,
.home-html-content img {
    max-width: 100%;
    height: auto;
}

.page-html-content iframe,
.home-html-content iframe {
    max-width: 100%;
}

.page-html-content iframe[src*="youtube.com/embed/"],
.page-html-content iframe[src*="youtube-nocookie.com/embed/"],
.page-html-content iframe[src*="player.vimeo.com/video/"] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.content-image-action__label { display: none; }

@media (max-width: 767.98px) {
    .page-html-content a.content-image-action {
        display: block;
        padding: 1rem 1.25rem;
        border-radius: .35rem;
        background: var(--systemstod-yellow);
        color: #fff;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }
    .content-image-action > img { display: none; }
    .content-image-action__label { display: block; }
}

.page-html-content h1,
.page-html-content h2,
.page-html-content h3,
.page-html-content h4,
.page-html-content h5,
.home-html-content h1,
.home-html-content h2,
.home-html-content h3,
.home-html-content h4,
.home-html-content h5 {
    color: #444;
    font-weight: 700;
    overflow-wrap: break-word;
}

.page-html-content h1,
.home-html-content h1 { font-size: clamp(2rem, 4.3vw, 3.5rem); }
.page-html-content h2,
.home-html-content h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.page-html-content h3,
.home-html-content h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.page-html-content h4,
.home-html-content h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.page-html-content h5,
.home-html-content h5 { font-size: 1.2rem; }

.page-html-content p,
.home-html-content p {
    margin-bottom: 1.25rem;
}

.page-html-content .lead,
.home-html-content .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.5;
}

.page-html-content a,
.home-html-content a {
    color: #b98200;
}

.page-html-content a:hover,
.page-html-content a:focus-visible,
.home-html-content a:hover,
.home-html-content a:focus-visible {
    color: #875f00;
}

.btn-main,
.btn-primary,
.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--systemstod-yellow);
    --bs-btn-border-color: var(--systemstod-yellow);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--systemstod-yellow-dark);
    --bs-btn-hover-border-color: var(--systemstod-yellow-dark);
    --bs-btn-active-bg: #bd890d;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-active-border-color: #bd890d;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-sage {
    --bs-btn-bg: #00a725;
    --bs-btn-border-color: #00a725;
    --bs-btn-color: #fff;
}

/* Imported link styles must not override text on filled action buttons. */
.btn:is(.btn-main, .btn-primary, .btn-warning, .btn-sage),
.btn:is(.btn-main, .btn-primary, .btn-warning, .btn-sage):is(:hover, :focus-visible, :active, :disabled, .disabled) {
    color: #fff !important;
}

.content-section {
    margin: 0;
    padding: clamp(2rem, 4.5vw, 4rem);
    background: #fff;
}

.content-section.greyBox,
.greyBox {
    background: #e0e0e0;
}

.content-section.orangeBox,
.orangeBox {
    background: var(--systemstod-yellow);
    color: #fff;
}

.orangeBox :is(h1, h2, h3, h4, p, a) {
    color: #fff;
}

.headerImg {
    width: 100%;
    min-height: 307px;
    padding: 4.5rem 1.25rem 2rem;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.headerImg h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgb(0 0 0 / 45%);
}

.btnScrollContact {
    margin-top: 1.5rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 700;
}

.content-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .35rem;
    box-shadow: 0 5px 18px rgb(24 35 45 / 7%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.content-card[data-profile-url],
.employee-card[data-profile-url] {
    cursor: pointer;
}

.content-card .employee-profile-link,
.employee-card .employee-card__name-link {
    color: inherit;
    text-decoration: none;
}

.content-card:hover,
.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgb(24 35 45 / 10%);
}

.content-card > img,
.content-card > a > img {
    display: block;
    width: 100%;
}

/* Imported product illustrations/logos must not be upscaled to full card width.
   Employee portraits retain their separately defined presentation. */
.content-card:not([data-profile-url]) > img,
.content-card:not([data-profile-url]) > a > img {
    width: auto;
    max-width: calc(100% - 2rem);
    max-height: 200px;
    margin: 1.25rem auto 0;
    object-fit: contain;
}

.content-card .caption {
    padding: 1.25rem;
}

/* Imported award/logo cards have their own identifiable heading structure.
   Keep this separate from product photography and employee portraits. */
.content-card:has(.caption > .featurette-heading) > img,
.content-card:has(.caption > .featurette-heading) > a > img {
    max-height: 130px;
    margin-top: 1rem;
}
.content-card:has(.caption > .featurette-heading) > br { display: none; }
.content-card:has(.caption > .featurette-heading) > .caption { padding-top: .75rem; }

/* The employee directory is normalized from imported markup into a native
   responsive grid. It has no legacy framework dependency. */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(calc(100% - 2rem), 1120px);
    margin: 0 auto clamp(2.5rem, 6vw, 5rem);
}

.page-html-content:has(.employee-grid) > .content-section:first-of-type {
    padding-bottom: 1.5rem;
}

.page-html-content:has(.employee-grid) > .content-section:first-of-type .featurette-divider {
    margin: 2.5rem 0 0;
}

.employee-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: .5rem;
    box-shadow: 0 5px 18px rgb(24 35 45 / 7%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.employee-card__portrait {
    display: block;
    overflow: hidden;
    background: #eee;
}

.employee-card__image,
.employee-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center top;
}

.employee-card__body {
    min-height: 11rem;
    padding: 1.2rem 1rem 1.35rem;
    text-align: center;
}

.employee-card__name {
    margin: 0 0 .85rem;
    font-size: 1.15rem !important;
    line-height: 1.3;
}

.employee-card__name-link {
    display: block;
    color: #444 !important;
}

.employee-card__name-link:hover,
.employee-card__name-link:focus-visible {
    color: #111 !important;
    text-decoration: underline;
    text-decoration-color: var(--systemstod-yellow);
    text-underline-offset: .2em;
}

.employee-card__body > a:not(.employee-card__name-link) {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .employee-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .employee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .employee-grid {
        grid-template-columns: 1fr;
    }
}

.featurette-divider {
    margin: clamp(2rem, 5vw, 4rem) 0;
    border-color: #ddd;
}

.featurette-heading {
    margin-top: 0;
}

.content-panel {
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .375rem;
}

.content-panel__header {
    padding: 1rem 1.25rem;
    background: var(--systemstod-light);
}

.content-panel__title {
    margin: 0;
    font-size: 1.05rem !important;
}

.content-panel__title a {
    display: block;
    color: #333;
    text-decoration: none;
}

.content-panel__body {
    padding: 1.25rem;
    border-top: 1px solid #ddd;
}

.nav-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #d5d5d5;
}

.nav-sub > li {
    flex: 1 1 9rem;
    min-width: 0;
}

.nav-sub > li > a {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    min-height: 3rem;
    padding: .9rem .7rem;
    color: #555;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background: #f7f7f7;
    border: 1px solid transparent;
    border-bottom: 0;
}

.nav-sub > li > a:hover,
.nav-sub > li > a:focus-visible {
    color: #222;
    background: #efefef;
}

.nav-sub > li.active > a,
.nav-sub > li > a.active {
    color: #333;
    background: #fff;
    border-color: #d5d5d5;
    box-shadow: inset 0 3px 0 var(--systemstod-yellow);
}

.content-callout {
    min-height: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
}

.form-group {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    /* All choices remain discoverable without a hidden horizontal scroll. */
    .page-html-content .nav-sub { flex-wrap: wrap; width: 100%; max-width: 100%; overflow: visible; gap: .35rem; }
    .page-html-content .nav-sub > li { flex: 1 1 calc(50% - .35rem); width: auto; max-width: 100%; min-width: 0; }
    .page-html-content .nav-sub > li > a { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; min-width: 0; height: 100%; padding-inline: .65rem; border-bottom: 1px solid #d5d5d5; }
}

.carousel-item {
    min-height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-media { display: none; }

.widget-featured {
    max-height: 400px;
    overflow: hidden;
}

.widget-featured .carousel-caption {
    right: 15%;
    bottom: 2rem;
    left: 15%;
    padding: 1rem;
    color: #111;
    background: rgb(255 255 255 / 94%);
    border-radius: .35rem;
}

.widget-featured .carousel-caption :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-weight: 500;
}

.content-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-style: normal;
}

.content-icon::before { font-size: 1em; }
.content-icon-cog::before { content: "⚙"; }
.content-icon-hdd::before { content: "▰"; }
.content-icon-download-alt::before { content: "↓"; }
.content-icon-retweet::before { content: "↻"; }
.content-icon-bullhorn::before { content: "◖"; }
.content-icon-equalizer::before { content: "▦"; }

.content-firstpage {
    max-width: 1170px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;
}

.headder-firstpage {
    width: min(80%, 980px);
    margin-inline: auto;
    text-align: center;
}

.widget-after-main {
    clear: both;
    padding: 3rem 0;
    overflow: hidden;
}

.produkterDiv {
    position: relative;
    padding: 2.5rem 1rem 1.75rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.produkterDiv h2,
.icon-container :is(h5, span, a, p) {
    color: #fff;
}

.produkterDiv h2 {
    text-align: center;
}

.icon-container > [class*="col-"] {
    min-height: 120px;
    padding: .75rem;
    border-radius: .5rem;
}

.icon-container > [class*="col-"]:hover {
    background: rgb(255 255 255 / 25%);
}

.icon-container .icon {
    float: left;
    width: 3.75rem;
    height: 4.5rem;
    margin: .4rem 1rem 0 0;
    color: #fff;
    font-size: 2.5rem;
}

.customerLogo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 0;
    text-align: center;
}

.customerLogo img {
    max-height: 150px;
    object-fit: contain;
}

.widget-recent-blog-posts,
.widget-SageX3,
.widget-linkedinwidget {
    float: left;
    clear: none;
    width: 33.333%;
    padding: 0 clamp(1rem, 3vw, 3rem);
    text-align: center;
}

.recent-posts {
    padding: 0;
    list-style: none;
}

.recent-posts li {
    margin: 1rem;
    padding: .75rem;
    border-bottom: 1px solid #e1e1e1;
    text-align: left;
}

.center,
.text-center { text-align: center; }

.iFrameVideo iframe,
.custom-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0 !important;
}

.embed-responsive {
    position: relative;
    width: 100% !important;
    max-width: 960px;
    height: 0;
    margin: 2.5rem auto !important;
    padding: 0 0 56.25% !important;
    overflow: hidden;
}

.embed-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.boxWithBorder {
    min-height: 30rem;
    padding: 1rem;
    border-right: 2px solid currentColor;
}

.productHighlithgt {
    padding-block: 4rem;
    background: #fff;
}

@media (max-width: 991.98px) {
    .widget-recent-blog-posts,
    .widget-SageX3,
    .widget-linkedinwidget {
        float: none;
        width: 100%;
    }

    .boxWithBorder {
        min-height: 0;
        border-right: 0;
        border-bottom: 2px solid currentColor;
    }
}

@media (max-width: 767.98px) {
    .headerImg {
        min-height: 220px;
        padding-top: 3.5rem;
    }

    .headerImg h1 {
        font-size: clamp(1.4rem, 6.4vw, 1.65rem);
        line-height: 1.15;
        overflow-wrap: normal;
    }

    .carousel-item {
        min-height: 280px;
    }

    .widget-featured {
        max-height: none;
    }

    .home-html-content .carousel-item:has(> .carousel-media) { min-height: 0; background-image: none !important; }
    .home-html-content .carousel-media { display: block; width: 100%; height: auto; }

    .widget-featured .carousel-caption {
        right: 5%;
        bottom: 1rem;
        left: 5%;
        padding: .75rem;
    }

    .home-html-content .carousel-item:has(> .carousel-media) .carousel-caption {
        position: static;
        padding: 1.25rem 2rem;
        border-radius: 0;
        text-align: center;
    }

    .widget-featured .carousel-caption h4 {
        font-size: 1.1rem;
    }

    .headder-firstpage {
        width: 100%;
        text-align: center;
    }

    .home-html-content .content-firstpage h1 { text-align: center; }

    .content-section {
        padding: 1.5rem 1rem;
    }
}

.contact-form-section {
    padding: clamp(2rem, 6vw, 4.5rem) 1rem;
    background: linear-gradient(145deg, #f1f2f3, #fafafa);
}

.contact-form-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    width: min(100%, 1080px);
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(24 35 45 / 10%);
    border-radius: .75rem;
    box-shadow: 0 14px 36px rgb(24 35 45 / 9%);
}

.contact-form-content {
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.contact-person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f7f5ef;
    border-left: 1px solid rgb(24 35 45 / 9%);
}

.contact-person-image {
    width: 160px;
    height: 160px;
    margin-bottom: 1.25rem;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgb(24 35 45 / 14%);
}

.contact-person-label {
    margin: 0 0 .35rem;
    color: #8a6500;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.contact-person-card h3 {
    margin: 0 0 .85rem;
    font-size: 1.35rem;
}

.contact-person-card a {
    max-width: 100%;
    color: #604800;
    overflow-wrap: anywhere;
}

.contact-form-inner form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form-inner form > .btn {
    width: fit-content;
    min-width: 12rem;
    padding: .8rem 1.25rem;
}

.contact-form-field {
    display: grid;
    gap: .35rem;
}

.contact-form-field label {
    font-weight: 700;
}

.contact-form-field :is(input, textarea) {
    width: 100%;
    padding: .8rem .9rem;
    color: #333;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: .25rem;
}

.contact-form-field :is(input, textarea):focus-visible {
    border-color: #a97900;
    outline: 3px solid rgb(250 180 0 / 28%);
}

.contact-form-errors,
.field-validation-error {
    color: #a40000;
}

.validation-summary-valid,
.field-validation-valid {
    display: none;
}

.contact-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .contact-form-inner form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-form-errors,
    .contact-form-field:has(textarea),
    .contact-form-inner form > .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .contact-form-inner {
        grid-template-columns: 1fr;
    }

    .contact-person-card {
        border-top: 1px solid rgb(24 35 45 / 9%);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-card {
        transition: none;
    }
}

.visual-hero__image { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.visual-hero--compact .visual-hero__image { max-height: 220px; margin-bottom: 16px; }
.visual-faq { padding: clamp(1rem, 2.5vw, 2rem) 0; background: #fff; }
.visual-faq details { border-bottom: 1px solid #e2e6ea; padding: 18px 0; }
.visual-faq summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.visual-faq details p { white-space: pre-line; margin: 16px 0 0; }
.visual-contact-person, .visual-hubspot, .visual-meetings { padding: clamp(20px, 4vw, 40px); border: 1px solid #e2e6ea; border-radius: 8px; background: #fff; }
.visual-contact-person img { display: block; max-width: 180px; width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.visual-hubspot p, .visual-meetings p { white-space: pre-line; }
.hubspot-meeting-embed iframe { width: 100%; height: 720px; border: 0; }

/* Additional editorial blocks use the same card language as migrated pages. */
.visual-logos, .visual-video, .visual-document, .visual-related {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: .45rem;
}
.visual-logos, .visual-video { border: 0; border-radius: 0; padding-inline: 0; }
.visual-logos h2, .visual-video h2, .visual-document h2, .visual-related h2 { margin: 0 0 1.25rem; }
.visual-video p, .visual-document p { white-space: pre-line; }
.visual-logos__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.visual-logos__list img { display: block; width: 100%; height: 110px; object-fit: contain; }
.visual-video__player { display: block; min-width: 0; aspect-ratio: 16 / 9; background: #f7f7f7; }
.visual-video__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.visual-related ul { display: grid; gap: .75rem; padding-left: 1.25rem; margin-bottom: 0; }
.visual-related a { overflow-wrap: anywhere; }
.visual-document .btn { max-width: 100%; white-space: normal; }
.visual-setting--white > .visual-block { background: #fff; }
.visual-setting--grey > .visual-block { background: #f1f1f1; }
.visual-setting--space-small { padding-top: 1rem; }
.visual-setting--space-normal { padding-top: 2rem; }
.visual-setting--space-large { padding-top: clamp(2rem, 5vw, 4rem); }

/* Let the official embed own fields, validation and font sizes inside its frame. */
.visual-hubspot, .hubspot-form-embed { min-width: 0; }
.hubspot-form-embed, .hubspot-form-embed > div, .hubspot-form-embed iframe { width: 100%; max-width: 100%; }
.hubspot-form-embed iframe { display: block; border: 0; }
@media (max-width: 767.98px) {
    /* HubSpot owns the iframe's inner spacing. Avoid adding another mobile
       gutter outside it; keep the block heading aligned with other content. */
    .visual-hubspot { padding-inline: 0; border-inline: 0; border-radius: 0; }
    .visual-card { padding: 1.25rem; }
    .visual-setting--grey > .visual-block, .visual-setting--white > .visual-block {
        padding-inline: 1rem;
    }
}
