.ns2025-card {
    --ns2025-card-radius: 8px;
    border: 1px solid color-mix(in oklab, var(--wp--preset--color--dark, #18181c) 10%, transparent);
    border-radius: var(--ns2025-card-radius);
    box-sizing: border-box;
    color: var(--wp--preset--color--dark, #18181c);
    overflow-wrap: break-word;
}

.ns2025-card--shadow {
    box-shadow: 0 16px 40px rgba(24, 24, 28, 0.1);
}

.ns2025-card--white {
    background: #fff;
}

.ns2025-card--light {
    background: var(--wp--preset--color--light, #f4f4f5);
}

.ns2025-card--primary {
    background: var(--wp--preset--color--primary, #2670b4);
    border-color: transparent;
    color: #fff;
}

.ns2025-card--secondary {
    background: var(--wp--preset--color--secondary, #99cd20);
    border-color: transparent;
    color: var(--wp--preset--color--dark, #18181c);
}

.ns2025-card--blue-gradient {
    background: linear-gradient(135deg, #3b6cb9 0%, #2a4d8a 100%);
    border-color: transparent;
    color: #fff;
}

.ns2025-card--primary a,
.ns2025-card--blue-gradient a {
    color: inherit;
}

.ns2025-card--outline {
    background: transparent;
    border-color: var(--wp--preset--color--primary, #2670b4);
}

.ns2025-card--padding-sm {
    padding: 1rem;
    --ns2025-card-padding: 1rem;
}

.ns2025-card--padding-md {
    padding: 1.5rem;
    --ns2025-card-padding: 1.5rem;
}

.ns2025-card--padding-lg {
    padding: 2rem;
    --ns2025-card-padding: 2rem;
}

.ns2025-card:has(> .wp-block-image:only-child),
.ns2025-card:has(> figure.wp-block-image:only-child) {
    padding: 0;
}

.ns2025-card--split {
    align-items: stretch;
    display: grid;
    overflow: hidden;
    padding: 0;
}

.ns2025-card--split-50-50 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ns2025-card--split-66-33 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.ns2025-card--split-33-66 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.ns2025-card--split-70-30 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.ns2025-card--split-30-70 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
}

.ns2025-card--split > .block-editor-inner-blocks,
.ns2025-card--split > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: contents;
}

.ns2025-card-area {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    min-height: 100%;
    min-width: 0;
    width: 100%;
}

.ns2025-card-area--left {
    background-color: var(--ns2025-card-left-bg-color, transparent);
    background-image: var(--ns2025-card-left-bg-image, none);
    padding: var(--ns2025-card-left-padding, 1.5rem);
}

.ns2025-card-area--right {
    background-color: var(--ns2025-card-right-bg-color, transparent);
    background-image: var(--ns2025-card-right-bg-image, none);
    padding: var(--ns2025-card-right-padding, 1.5rem);
}

.ns2025-card:not(.ns2025-card--split) > *,
.ns2025-card-area > * {
    margin-bottom: 0;
    margin-top: 0;
}

.ns2025-card:not(.ns2025-card--split) > * + *,
.ns2025-card-area > * + *,
.ns2025-card-area .wp-block-column > * + * {
    margin-top: 25px !important; 
}

.ns2025-card-split-placeholder {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    color: #475569;
    padding: 1rem;
}

.ns2025-card-split-placeholder p {
    margin: 0 0 0.75rem;
}

.ns2025-card--split > .ns2025-card-area--left,
.ns2025-card--split > .block-editor-inner-blocks > .block-editor-block-list__layout > .ns2025-card-area--left {
    border-bottom-left-radius: var(--ns2025-card-radius);
    border-top-left-radius: var(--ns2025-card-radius);
    overflow: hidden;
}

.ns2025-card--split > .ns2025-card-area--right,
.ns2025-card--split > .block-editor-inner-blocks > .block-editor-block-list__layout > .ns2025-card-area--right {
    border-bottom-right-radius: var(--ns2025-card-radius);
    border-top-right-radius: var(--ns2025-card-radius);
    overflow: hidden;
}

.ns2025-card:has(> .wp-block-columns) {
    display: flex;
    flex-direction: column;
}

.ns2025-card:not(.ns2025-card--split):has(> div:first-child:has(> img:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:first-child:has(> picture:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:first-child:has(> .wp-block-image:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:first-child:has(> figure.wp-block-image:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:last-child:has(> img:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:last-child:has(> picture:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:last-child:has(> .wp-block-image:only-child)),
.ns2025-card:not(.ns2025-card--split):has(> div:last-child:has(> figure.wp-block-image:only-child)) {
    align-items: stretch;
    display: flex;
}

.ns2025-card > :first-child {
    margin-top: 0;
}

.ns2025-card > :last-child {
    margin-bottom: 0;
}

.ns2025-card > .wp-block-image:only-child,
.ns2025-card > figure.wp-block-image:only-child,
.ns2025-card .wp-block-column > .wp-block-image:only-child,
.ns2025-card .wp-block-column > figure.wp-block-image:only-child {
    height: 100%;
    margin: 0;
    width: 100%;
}

.ns2025-card > .wp-block-image:only-child img,
.ns2025-card > figure.wp-block-image:only-child img,
.ns2025-card .wp-block-column > .wp-block-image:only-child img,
.ns2025-card .wp-block-column > figure.wp-block-image:only-child img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ns2025-card .wp-block-columns {
    align-items: stretch;
}

.ns2025-card > .wp-block-columns {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.ns2025-card > .wp-block-image:only-child,
.ns2025-card > figure.wp-block-image:only-child {
    border-radius: var(--ns2025-card-radius);
    overflow: hidden;
}

.ns2025-card > .wp-block-image:only-child img,
.ns2025-card > figure.wp-block-image:only-child img {
    border-radius: var(--ns2025-card-radius);
}

.ns2025-card .wp-block-column:has(> .wp-block-image:only-child),
.ns2025-card .wp-block-column:has(> figure.wp-block-image:only-child) {
    align-self: stretch;
    margin-bottom: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    margin-top: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    min-height: 0;
    position: relative;
}

.ns2025-card .wp-block-column:has(> .wp-block-image:only-child) > .wp-block-image,
.ns2025-card .wp-block-column:has(> figure.wp-block-image:only-child) > figure.wp-block-image {
    inset: 0;
    position: absolute;
}

.ns2025-card .wp-block-column:first-child:has(> .wp-block-image:only-child),
.ns2025-card .wp-block-column:first-child:has(> figure.wp-block-image:only-child) {
    margin-left: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    overflow: hidden;
    border-bottom-left-radius: var(--ns2025-card-radius);
    border-top-left-radius: var(--ns2025-card-radius);
}

.ns2025-card .wp-block-column:last-child:has(> .wp-block-image:only-child),
.ns2025-card .wp-block-column:last-child:has(> figure.wp-block-image:only-child) {
    margin-right: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    overflow: hidden;
    border-bottom-right-radius: var(--ns2025-card-radius);
    border-top-right-radius: var(--ns2025-card-radius);
}

.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> img:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child) {
    margin-bottom: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    margin-left: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    margin-top: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    overflow: hidden;
    border-bottom-left-radius: var(--ns2025-card-radius);
    border-top-left-radius: var(--ns2025-card-radius);
}

.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> img:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child) {
    margin-bottom: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    margin-right: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    margin-top: calc(var(--ns2025-card-padding, 1.5rem) * -1);
    overflow: hidden;
    border-bottom-right-radius: var(--ns2025-card-radius);
    border-top-right-radius: var(--ns2025-card-radius);
}

.ns2025-card .wp-block-column:first-child > .wp-block-image:only-child,
.ns2025-card .wp-block-column:first-child > figure.wp-block-image:only-child,
.ns2025-card .wp-block-column:first-child > .wp-block-image:only-child img,
.ns2025-card .wp-block-column:first-child > figure.wp-block-image:only-child img {
    border-bottom-left-radius: var(--ns2025-card-radius);
    border-top-left-radius: var(--ns2025-card-radius);
}

.ns2025-card .wp-block-column:last-child > .wp-block-image:only-child,
.ns2025-card .wp-block-column:last-child > figure.wp-block-image:only-child,
.ns2025-card .wp-block-column:last-child > .wp-block-image:only-child img,
.ns2025-card .wp-block-column:last-child > figure.wp-block-image:only-child img {
    border-bottom-right-radius: var(--ns2025-card-radius);
    border-top-right-radius: var(--ns2025-card-radius);
}

.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> img:only-child) > img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child) > picture,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child) > picture > img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child) > .wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child) > .wp-block-image img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image img {
    border-bottom-left-radius: var(--ns2025-card-radius);
    border-top-left-radius: var(--ns2025-card-radius);
    overflow: hidden;
}

.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> img:only-child) > img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child) > picture,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child) > picture > img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child) > .wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child) > .wp-block-image img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image img {
    border-bottom-right-radius: var(--ns2025-card-radius);
    border-top-right-radius: var(--ns2025-card-radius);
    overflow: hidden;
}

.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> img:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> img:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child),
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> img:only-child) > img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child) > picture,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> picture:only-child) > picture > img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child) > .wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> .wp-block-image:only-child) > .wp-block-image img,
.ns2025-card:not(.ns2025-card--split) > div:first-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> img:only-child) > img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child) > picture,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> picture:only-child) > picture > img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child) > .wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> .wp-block-image:only-child) > .wp-block-image img,
.ns2025-card:not(.ns2025-card--split) > div:last-child:has(> figure.wp-block-image:only-child) > figure.wp-block-image img {
    height: 100%;
    width: 100%;
}

.ns2025-card .wp-block-image figcaption,
.ns2025-card figure.wp-block-image figcaption,
.ns2025-card .wp-element-caption {
    display: none !important;
}

@media (max-width: 600px) {
    .ns2025-card--split {
        grid-template-columns: 1fr;
    }

    .ns2025-card--padding-md,
    .ns2025-card--padding-lg {
        padding: 1.25rem;
    }

    .ns2025-card--split {
        padding: 0;
    }

    .ns2025-card--split > .ns2025-card-area--left,
    .ns2025-card--split > .block-editor-inner-blocks > .block-editor-block-list__layout > .ns2025-card-area--left {
        border-bottom-left-radius: 0;
        border-top-right-radius: var(--ns2025-card-radius);
    }

    .ns2025-card--split > .ns2025-card-area--right,
    .ns2025-card--split > .block-editor-inner-blocks > .block-editor-block-list__layout > .ns2025-card-area--right {
        border-bottom-left-radius: var(--ns2025-card-radius);
        border-top-right-radius: 0;
    }
}

.wp-block-notebookservice-card-container.ns2025-card-area {
    background-size: cover !important;
}

.ns2025-page-full-width__content {
  place-items: center;
}

.ns2025-page-full-width__content > .wp-block-cover {
    width: 100%;
    margin: 0 !important;
}
