.custom-section {
    background: var(--sc-custom-section-v1-root-bg, var(--primary-background-color, #fff));
    padding: clamp(2rem, 4vw, 3.5rem) 1.25rem;
}

.custom-section--bg-muted {
    background: var(--sc-custom-section-v1-muted-bg, var(--secondary-background-color, #f8fafc));
}

.custom-section--bg-image {
    background-color: var(--sc-custom-section-v1-root-bg, var(--primary-background-color, #fff));
    background-image: var(--custom-section-bg-image);
    background-size: cover;
    background-position: center;
}

.custom-section__inner {
    max-width: var(--custom-section-max-width, 72rem);
    margin: 0 auto;
}

.custom-section--width-narrow .custom-section__inner {
    --custom-section-max-width: 42rem;
}

.custom-section--width-wide .custom-section__inner {
    --custom-section-max-width: 90rem;
}

.custom-section--align-center .custom-section__header,
.custom-section--align-center .custom-section__blocks {
    text-align: center;
}

.custom-section--align-center .custom-section__actions {
    justify-content: center;
}

.custom-section__header {
    max-width: 42rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.custom-section--align-center .custom-section__header {
    margin-left: auto;
    margin-right: auto;
}

.custom-section__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sc-custom-section-v1-eyebrow-text, var(--primary-brand-color, #2563eb));
}

.custom-section__title {
    margin: 0 0 0.65rem;
    font-size: var(--custom-section-title-size-desktop, clamp(1.65rem, 3.2vw, 2.25rem));
    font-weight: 700;
    line-height: 1.15;
    color: var(--sc-custom-section-v1-title-text, var(--primary-title-color, #0f172a));
}

.custom-section__subtitle {
    margin: 0;
    font-size: var(--custom-section-subtitle-size-desktop, clamp(0.95rem, 2vw, 1.05rem));
    line-height: 1.6;
    color: var(--sc-custom-section-v1-subtitle-text, var(--secondary-text-color, #64748b));
}

.custom-section__blocks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.custom-section__row-break {
    flex: 0 0 100%;
    width: 0;
    height: 0;
    overflow: hidden;
}

.custom-section__row-break--desktop,
.custom-section__row-break--mobile {
    display: none;
}

@media (min-width: 768px) {
    .custom-section__row-break--desktop,
    .custom-section__row-break--both {
        display: block;
    }
}

@media (max-width: 767px) {
    .custom-section__row-break--mobile,
    .custom-section__row-break--both {
        display: block;
    }
}

.custom-section__block {
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 768px) {
    .custom-section__block--row-d-full {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .custom-section__block--row-d-half {
        flex: 1 1 calc(50% - clamp(0.5rem, 1.25vw, 0.75rem));
        max-width: calc(50% - clamp(0.5rem, 1.25vw, 0.75rem));
    }

    .custom-section__block--row-d-third {
        flex: 1 1 calc(33.333% - clamp(0.67rem, 1.67vw, 1rem));
        max-width: calc(33.333% - clamp(0.67rem, 1.67vw, 1rem));
    }

    .custom-section__block--row-d-quarter {
        flex: 1 1 calc(25% - clamp(0.75rem, 1.875vw, 1.125rem));
        max-width: calc(25% - clamp(0.75rem, 1.875vw, 1.125rem));
    }
}

@media (max-width: 767px) {
    .custom-section__block--row-m-full {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .custom-section__block--row-m-half {
        flex: 1 1 calc(50% - clamp(0.5rem, 1.25vw, 0.75rem));
        max-width: calc(50% - clamp(0.5rem, 1.25vw, 0.75rem));
    }

    .custom-section__block--row-m-third {
        flex: 1 1 calc(33.333% - clamp(0.67rem, 1.67vw, 1rem));
        max-width: calc(33.333% - clamp(0.67rem, 1.67vw, 1rem));
    }

    .custom-section__block--row-m-quarter {
        flex: 1 1 calc(25% - clamp(0.75rem, 1.875vw, 1.125rem));
        max-width: calc(25% - clamp(0.75rem, 1.875vw, 1.125rem));
    }
}

.custom-section__block--width-full {
    max-width: 100%;
}

.custom-section__block--width-narrow {
    max-width: 36rem;
}

.custom-section__block--width-medium {
    max-width: 48rem;
}

.custom-section__block--width-wide {
    max-width: 64rem;
}

.custom-section__block--position-center {
    margin-inline: auto;
}

.custom-section__block--position-start {
    margin-inline-end: auto;
}

.custom-section__block--position-end {
    margin-inline-start: auto;
}

.custom-section__block--align-left {
    text-align: start;
}

.custom-section__block--align-center {
    text-align: center;
}

.custom-section__block--align-center .custom-section__actions {
    justify-content: center;
}

.custom-section__block--align-right {
    text-align: end;
}

.custom-section__block--align-right .custom-section__actions {
    justify-content: flex-end;
}

.custom-section__block--margin-top-none { margin-top: 0; }
.custom-section__block--margin-top-sm { margin-top: 0.5rem; }
.custom-section__block--margin-top-md { margin-top: 1rem; }
.custom-section__block--margin-top-lg { margin-top: 2rem; }
.custom-section__block--margin-top-xl { margin-top: 3rem; }

.custom-section__block--margin-bottom-none { margin-bottom: 0; }
.custom-section__block--margin-bottom-sm { margin-bottom: 0.5rem; }
.custom-section__block--margin-bottom-md { margin-bottom: 1rem; }
.custom-section__block--margin-bottom-lg { margin-bottom: 2rem; }
.custom-section__block--margin-bottom-xl { margin-bottom: 3rem; }

.custom-section__block--padding-none { padding: 0; }
.custom-section__block--padding-sm { padding: 0.75rem; }
.custom-section__block--padding-md { padding: 1.25rem; }
.custom-section__block--padding-lg { padding: 2rem; }

.custom-section__block--image-width-full .custom-section__figure-img {
    width: 100%;
}

.custom-section__block--image-width-medium .custom-section__figure {
    max-width: 32rem;
    margin-inline: auto;
}

.custom-section__block--image-width-small .custom-section__figure {
    max-width: 20rem;
    margin-inline: auto;
}

.custom-section__media--v-center {
    align-items: center;
}

.custom-section__block-heading {
    margin: 0;
    color: var(--sc-custom-section-v1-title-text, var(--primary-title-color, #0f172a));
}

.custom-section__block-heading--h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
}

.custom-section__block-heading--h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.custom-section__block-heading--h4 {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.custom-section__text,
.custom-section__html {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--sc-custom-section-v1-body-text, var(--primary-text-color, #334155));
}

.custom-section__html a {
    color: var(--sc-custom-section-v1-link-text, var(--primary-brand-color, #2563eb));
}

.custom-section__html a:hover {
    color: var(--sc-custom-section-v1-link-hover-text, var(--secondary-brand-color, #1d4ed8));
}

.custom-section__html ul,
.custom-section__html ol {
    padding-inline-start: 1.25rem;
}

.custom-section__figure {
    margin: 0;
}

.custom-section__figure-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.custom-section__figure-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--sc-custom-section-v1-subtitle-text, var(--secondary-text-color, #64748b));
}

.custom-section__video {
    margin: 0;
}

.custom-section__video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--sc-custom-section-v1-video-frame-bg, var(--tertiary-background-color, #0f172a));
}

.custom-section__video--aspect-16x9 .custom-section__video-frame {
    aspect-ratio: 16 / 9;
}

.custom-section__video--aspect-9x16 {
    max-width: min(100%, 22rem);
    margin-inline: auto;
}

.custom-section__video--aspect-9x16 .custom-section__video-frame {
    aspect-ratio: 9 / 16;
}

.custom-section__video--aspect-4x3 .custom-section__video-frame {
    aspect-ratio: 4 / 3;
}

.custom-section__video--aspect-1x1 .custom-section__video-frame {
    aspect-ratio: 1 / 1;
}

.custom-section__video-frame iframe,
.custom-section__video-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: var(--sc-custom-section-v1-video-native-bg, #000000);
}

.custom-section__video--no-controls .custom-section__video-frame iframe {
    pointer-events: none;
}

.custom-section__video--no-controls .custom-section__video-native {
    cursor: pointer;
}

.custom-section__video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(15 23 42 / 35%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-section__video-play:hover,
.custom-section__video-play:focus-visible {
    background: rgb(15 23 42 / 45%);
}

.custom-section__video-play:focus-visible {
    outline: 2px solid var(--primary-brand-color, #2563eb);
    outline-offset: -4px;
}

.custom-section__video-play-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 8px 24px rgb(15 23 42 / 25%);
    position: relative;
}

.custom-section__video-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 0.65rem 0 0.65rem 1.1rem;
    border-color: transparent transparent transparent var(--primary-brand-color, #2563eb);
}

.custom-section__video-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--sc-custom-section-v1-subtitle-text, var(--secondary-text-color, #64748b));
}

.custom-section__media {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

@media (min-width: 768px) {
    .custom-section__media {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .custom-section__media--right .custom-section__media-visual {
        order: 2;
    }
}

.custom-section__media-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.custom-section__media-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--sc-custom-section-v1-title-text, var(--primary-title-color, #0f172a));
}

.custom-section__media-body {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--sc-custom-section-v1-body-text, var(--primary-text-color, #334155));
}

.custom-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.custom-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-section__btn--primary {
    background: var(--sc-custom-section-v1-primary-btn-bg, var(--primary-button-background-color, #2563eb));
    color: var(--sc-custom-section-v1-primary-btn-text, var(--primary-button-text-color, #fff));
}

.custom-section__btn--primary:hover {
    background: var(--sc-custom-section-v1-primary-btn-hover-bg, var(--primary-button-hover-background-color, #1d4ed8));
    color: var(--sc-custom-section-v1-primary-btn-hover-text, var(--primary-button-hover-text-color, #fff));
}

.custom-section__btn--secondary {
    background: var(--sc-custom-section-v1-secondary-btn-bg, var(--secondary-button-background-color, transparent));
    border: 1px solid var(--sc-custom-section-v1-secondary-btn-border, var(--primary-brand-color, #2563eb));
    color: var(--sc-custom-section-v1-secondary-btn-text, var(--secondary-button-text-color, var(--primary-brand-color, #2563eb)));
}

.custom-section__btn--secondary:hover {
    background: var(--sc-custom-section-v1-secondary-btn-hover-bg, var(--secondary-button-hover-background-color, transparent));
    color: var(--sc-custom-section-v1-secondary-btn-hover-text, var(--secondary-button-hover-text-color, var(--primary-brand-color, #2563eb)));
    border-color: var(--sc-custom-section-v1-secondary-btn-hover-border, var(--primary-brand-color, #2563eb));
}

.custom-section__spacer--sm {
    height: 0.75rem;
}

.custom-section__spacer--md {
    height: 1.5rem;
}

.custom-section__spacer--lg {
    height: 2.5rem;
}

.custom-section__spacer--xl {
    height: 4rem;
}

.custom-section__divider {
    margin: 0;
    border: 0;
    height: 1px;
    background: var(--sc-custom-section-v1-divider-bg, color-mix(in srgb, var(--primary-text-color, #334155) 12%, transparent));
}

.custom-section__divider--dots {
    height: auto;
    background: none;
    border-top: 2px dotted var(--sc-custom-section-v1-divider-bg, color-mix(in srgb, var(--primary-text-color, #334155) 20%, transparent));
}

@media (max-width: 767px) {
    .custom-section__title {
        font-size: var(
            --custom-section-title-size-mobile,
            var(--custom-section-title-size-desktop, clamp(1.35rem, 4vw, 1.85rem))
        );
    }

    .custom-section__subtitle {
        font-size: var(
            --custom-section-subtitle-size-mobile,
            var(--custom-section-subtitle-size-desktop, clamp(0.9rem, 2.5vw, 1rem))
        );
    }
}

.custom-section__block--custom-font {
    font-size: var(--custom-section-block-font-desktop);
}

.custom-section__block--custom-font .custom-section__block-heading,
.custom-section__block--custom-font .custom-section__block-heading--h2,
.custom-section__block--custom-font .custom-section__block-heading--h3,
.custom-section__block--custom-font .custom-section__block-heading--h4,
.custom-section__block--custom-font .custom-section__text,
.custom-section__block--custom-font .custom-section__html,
.custom-section__block--custom-font .custom-section__figure-caption,
.custom-section__block--custom-font .custom-section__video-caption,
.custom-section__block--custom-font .custom-section__media-title,
.custom-section__block--custom-font .custom-section__media-body,
.custom-section__block--custom-font .custom-section__btn {
    font-size: inherit;
}

@media (max-width: 767px) {
    .custom-section__block--custom-font {
        font-size: var(--custom-section-block-font-mobile, var(--custom-section-block-font-desktop));
    }
}
