/* ==========================================================================
   Block Grid Components - Reusable Styles
   ========================================================================== */

/* Strategy Page - Account for fixed navigation */
.strategy-page {
    padding-top: 80px; /* Adjust based on your navigation height */
}

/* Strategy Page - Navigation styling */
.strategy-page-body .header_section {
    background-color: #ffffff;
}

.strategy-page-body .header_section .main_menu nav ul li a,
.strategy-page-body .header_section .canvas_open a {
    color: var(--block-primary-color);
    text-decoration: none;
}

.strategy-page-body .header_section .main_menu nav ul li a:hover,
.strategy-page-body .header_section .main_menu nav ul li a:focus {
    color: inherit;
    text-decoration: underline;
    background-color: white;
}

.strategy-page-body .header_section .main_menu nav ul li a.active {
    color: var(--block-primary-color);
    text-decoration: underline;
}

/* Strategy Page - All anchor hover styles (no primary highlight) */
.strategy-page-body .header_section a:hover,
.strategy-page-body .header_section a:focus {
    color: inherit;
    text-decoration: underline;
    background-color: white;
}

.strategy-page-body .header_section .canvas_open a i {
    color: var(--block-primary-color);
}

/* Default: hide strategy logo */
.header_section .strategy-nav-logo {
    display: none !important;
}

/* Strategy New Page - Show colored logo, hide white logo */
.strategy-new-page .header_section .strategy-nav-logo {
    display: block !important;
}

.strategy-new-page .header_section .desktop-nav-logo {
    display: none !important;
}

.strategy-nav-logo img {
    max-height: 40px;
    padding-left: 1rem;
}

/* CSS Custom Properties for Blocks */
:root {
    --block-primary-color: #333366;
    --block-secondary-color: #ffc400;
    --block-text-dark: #333366;
    --block-text-light: #ffffff;
    --block-bg-light: #ffffff;
    --block-bg-dark: #333366;
}

/* ==========================================================================
   Common Block Styles
   ========================================================================== */

/* Apply 100px horizontal margin to containers in full-width block grid elements (col-span 12) */
.umb-block-grid__layout-item[data-col-span="12"] .container {
    margin: 0 100px;
}

/* Reset container styles when nested inside block grid layout items */
.umb-block-grid__layout-item .container,
.umb-block-grid__layout-item > section > .container,
.umb-block-grid__layout-item > div > .container {
    max-width: 100%;
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

/* Rich Content Section content should span full width within container */
.umb-block-grid__layout-item .block-rich-content .content-width-full,
.umb-block-grid__layout-item .block-rich-content .block-rich-body {
    max-width: 100%;
    width: 100%;
}

/* Stepped List should fill full row span height and center content */
.umb-block-grid__layout-item .block-stepped-list {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.umb-block-grid__layout-item .block-stepped-list .container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.umb-block-grid__layout-item .block-stepped-list .block-stepped-items {
    align-items: center;
}

/* Full viewport height for row-span 4 */
.umb-block-grid__layout-item[data-row-span="4"] {
    min-height: 100vh;
}

.umb-block-grid__layout-item[data-row-span="4"] > section,
.umb-block-grid__layout-item[data-row-span="4"] > div {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

/* Ensure nested containers and content are also centered */
.umb-block-grid__layout-item[data-row-span="4"] .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* Full-width items get margin on both sides */
.umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] .container {
    margin: 0 100px;
}

@media (max-width: 767px) {
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] .container {
        margin: 0 28px;
    }
}

/* Non-full-width items: left column gets left margin, right column gets right margin */
.umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-rich-content .container {
    margin-left: 100px;
    margin-right: 0;
}

.umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-stepped-list .container {
    margin-left: 0;
    margin-right: 100px;
    align-items: flex-start;
}

/* Mobile adjustments for non-full-width row-span 4 items */
@media (max-width: 767px) {
    /* Divide viewport height by number of items in row based on col-span */
    /* col-span 12 = 1 item = 100vh */
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] {
        min-height: 100vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] > section,
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] > div {
        min-height: 100vh;
    }

    /* col-span 6 = 2 items = 50vh each */
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="6"] {
        min-height: 50vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="6"] > section,
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="6"] > div {
        min-height: 50vh;
    }

    /* col-span 4 = 3 items = 33.33vh each */
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="4"] {
        min-height: 33.33vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="4"] > section,
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="4"] > div {
        min-height: 33.33vh;
    }

    /* col-span 3 = 4 items = 25vh each */
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="3"] {
        min-height: 25vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="3"] > section,
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="3"] > div {
        min-height: 25vh;
    }

    /* col-span 8 + col-span 4 = 2 items (uneven split) */
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="8"] {
        min-height: 50vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="8"] > section,
    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="8"] > div {
        min-height: 50vh;
    }

    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-rich-content .container {
        margin-left: 28px;
        margin-right: 28px;
    }

    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-stepped-list .container {
        margin-left: 28px;
        margin-right: 28px;
        align-items: center;
    }

    /* Remove container effect on stepped list for mobile */
    .umb-block-grid__layout-item .block-stepped-list .container {
        display: contents !important;
    }
}

/* Vertically center images within sections */
.umb-block-grid__layout-item[data-row-span="4"] img {
    object-fit: contain;
    margin: auto 0;
}

/* Scroll snap behavior for full-height sections */
html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

.umb-block-grid__layout-item[data-row-span="4"] {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 80px; /* Account for fixed navigation */
}

/* Block Grid Element Padding */
.block-hero-banner,
.block-rich-content,
.block-card-grid,
.block-two-column,
.block-cta-banner,
.block-stepped-list,
.block-divider {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Apply custom colors via CSS variables */
[style*="--block-text-color"],
[style*="--block-text-color"] * {
    color: var(--block-text-color) !important;
}

[style*="--block-bg-color"] {
    background-color: var(--block-bg-color);
}

/* Background Image Support */
.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* When both background color and image are set, color acts as overlay */
.has-background-image[style*="--block-bg-color"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--block-bg-color);
    opacity: 0.7;
    z-index: 0;
}

/* Ensure content stays above the overlay */
.has-background-image > .container,
.has-background-image > * {
    position: relative;
    z-index: 1;
}

/* List Bullet Styles */
[style*="--block-text-color"] ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

[style*="--block-text-color"] ul ul {
    list-style-type: circle;
}

[style*="--block-text-color"] ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

/* Heading Sizes - Consistent across all sections */
.heading-small {
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
}

.heading-medium {
    font-size: 2.3125rem; /* 37px */
    line-height: 1.3;
}

.heading-large {
    font-size: 3.625rem; /* 58px */
    line-height: 1.2;
}

.heading-extra-large {
    font-size: 3.5rem;
    line-height: 1.1;
}

@media (max-width: 991px) {
    .heading-medium {
        font-size: 1.75rem; /* 28px */
    }

    .heading-large {
        font-size: 2.5rem; /* 40px */
    }
}

@media (max-width: 767px) {
    .heading-medium {
        font-size: 1.5rem; /* 24px */
    }

    .heading-large {
        font-size: 1.75rem; /* 28px */
    }
}

@media (max-width: 576px) {
    .heading-medium {
        font-size: 1.25rem; /* 20px */
    }

    .heading-large {
        font-size: 1.5rem; /* 24px */
    }

    .heading-extra-large {
        font-size: 2.5rem;
    }
}

/* Content Width Modifiers */
.content-width-full {
    max-width: 100%;
}

.content-width-narrow {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.content-width-extra-narrow {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Padding Utilities */
.pt-none { padding-top: 0; }
.pt-small { padding-top: 1.5rem; }
.pt-medium { padding-top: 3rem; }
.pt-large { padding-top: 5rem; }

.pb-none { padding-bottom: 0; }
.pb-small { padding-bottom: 1.5rem; }
.pb-medium { padding-bottom: 3rem; }
.pb-large { padding-bottom: 5rem; }

/* Margin Utilities */
.mt-none { margin-top: 0; }
.mt-small { margin-top: 1rem; }
.mt-medium { margin-top: 2rem; }
.mt-large { margin-top: 4rem; }

.mb-none { margin-bottom: 0; }
.mb-small { margin-bottom: 1rem; }
.mb-medium { margin-bottom: 2rem; }
.mb-large { margin-bottom: 4rem; }

/* Container Margin Utilities */
.container-margin-none { margin-top: 0; margin-bottom: 0; }
.container-margin-small { margin-top: 1rem; margin-bottom: 1rem; }
.container-margin-medium { margin-top: 2rem; margin-bottom: 2rem; }
.container-margin-large { margin-top: 4rem; margin-bottom: 4rem; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: 'Roboto-Medium', Arial, sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--block-primary-color);
    color: var(--block-text-light);
    border-color: var(--block-primary-color);
}

.btn-primary:hover {
    background-color: #252550;
    border-color: #252550;
    color: var(--block-text-light);
}

.btn-secondary {
    background-color: var(--block-secondary-color);
    color: var(--block-text-dark);
    border-color: var(--block-secondary-color);
}

.btn-secondary:hover {
    background-color: #e6b000;
    border-color: #e6b000;
    color: var(--block-text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--block-primary-color);
    border-color: var(--block-primary-color);
}

.btn-outline:hover {
    background-color: var(--block-primary-color);
    color: var(--block-text-light);
}

.btn.btn-asymmetric {
    background-color: transparent;
    color: var(--block-text-color, #fff);
    border: 1px solid var(--block-text-color, #fff);
    border-radius: 0 35px 0 35px;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    text-transform: none;
    letter-spacing: normal;
}

.btn.btn-asymmetric:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--block-text-color, #fff);
}

/* ==========================================================================
   Hero Banner Block
   ========================================================================== */

.block-hero-banner {
    padding: 4rem 0;
    color: var(--block-text-color, var(--block-text-dark));
    background-color: var(--block-bg-color, transparent);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-hero-banner.max-width-75 .container {
    max-width: 75%;
}

@media (max-width: 768px) {
    .block-hero-banner.max-width-75 .container {
        max-width: 100%;
    }
}

.block-hero-heading {
    font-family: 'Roboto-Light', Arial, sans-serif;
    margin-bottom: 1rem;
    color: inherit;
}

/* Hero Banner specific heading sizes */
.block-hero-heading.heading-small {
    font-size: 2.5rem; /* 40px */
}

.block-hero-heading.heading-medium {
    font-size: 3.75rem; /* 60px */
}

.block-hero-heading.heading-large {
    font-size: 5rem; /* 80px */
}

.block-hero-heading.heading-extra-large {
    font-size: 6.25rem; /* 100px */
}

@media (max-width: 768px) {
    .block-hero-heading.heading-small {
        font-size: 1.625rem; /* 26px */
    }

    .block-hero-heading.heading-medium {
        font-size: 2.1rem; /* ~34px */
    }

    .block-hero-heading.heading-large {
        font-size: 2.8rem; /* ~45px */
    }

    .block-hero-heading.heading-extra-large {
        font-size: 3.5rem; /* 56px */
    }
}

.block-hero-line {
    width: 50%;
    height: 4px;
    background-color: currentColor;
    margin: 28px 0;
    opacity: 1;
}

.text-center .block-hero-line {
    margin-left: auto;
    margin-right: auto;
}

.text-left .block-hero-line {
    margin-left: 0;
}

.text-right .block-hero-line {
    margin-left: auto;
    margin-right: 0;
}

.block-hero-subtitle {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: inherit;
    opacity: 0.9;
}

.block-hero-cta {
    margin-top: 2rem;
}

/* ==========================================================================
   Rich Content Section Block
   ========================================================================== */

.block-rich-content {
    color: var(--block-text-color, var(--block-text-dark));
    background-color: var(--block-bg-color, transparent);
}

.block-heading-wrapper {
    margin-bottom: 1.5rem;
}

.block-heading-wrapper.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-heading-wrapper.text-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.block-heading-wrapper.text-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.block-rich-heading {
    font-family: 'Roboto-Medium', Arial, sans-serif;
    margin-bottom: 0.5rem;
    color: inherit;
}


.block-rich-body {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 1.25rem; /* 20px */
    line-height: 1.7;
    color: inherit;
    width: 100%;
}

/* Content Size Modifiers - Consistent with heading sizes */
.block-rich-body.content-size-small {
    font-size: 1.25rem; /* 20px */
}

.block-rich-body.content-size-medium {
    font-size: 2.3125rem; /* 37px */
}

.block-rich-body.content-size-large {
    font-size: 3.625rem; /* 58px */
}

.block-rich-body p {
    width: 100%;
}

.block-rich-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.block-rich-body ul ul {
    list-style-type: circle;
}

.block-rich-body ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.block-rich-body li {
    margin-bottom: 0.25rem;
}

.block-rich-body li p {
    margin: 0;
}

.block-rich-cta {
    margin-top: 2rem;
    text-align: center;
}

.block-rich-cta .btn {
    border-radius: 0 35px 0 35px;
    border-width: 2px;
    text-transform: none;
    letter-spacing: normal;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

.block-rich-cta .btn-outline {
    border-color: var(--block-text-color, var(--block-primary-color));
    color: var(--block-text-color, var(--block-primary-color));
}

.block-rich-cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--block-text-color, var(--block-primary-color));
    border-color: var(--block-text-color, var(--block-primary-color));
}

/* ==========================================================================
   Two Column Layout Block
   ========================================================================== */

.block-two-column {
    padding: 3rem 0;
    color: var(--block-text-color, var(--block-text-dark));
    background-color: var(--block-bg-color, transparent);
}

.block-column {
    margin-bottom: 2rem;
    height: 100%;
}

@media (min-width: 992px) {
    .block-column {
        margin-bottom: 0;
    }
}

.block-column-heading {
    font-family: 'Roboto-Medium', Arial, sans-serif;
    margin-bottom: 1.5rem;
    color: inherit;
}

.block-column-content {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: inherit;
    width: 100%;
}

.block-column-content p {
    width: 100%;
}

.block-column-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.block-column-content ul ul {
    list-style-type: circle;
}

.block-column-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.block-column-content li {
    margin-bottom: 0.25rem;
}

.block-column-content li p {
    margin: 0;
}

.block-column-image {
    border-radius: 4px;
}

/* Vertical Alignment */
.align-items-top {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-bottom {
    align-items: flex-end;
}

/* ==========================================================================
   Card Grid Block
   ========================================================================== */

.block-card-grid {
    padding: 3rem 0;
    color: var(--block-text-color, var(--block-text-dark));
    background-color: var(--block-bg-color, transparent);
}

.block-card-grid-header {
    margin-bottom: 3rem;
}

.block-card-grid-heading {
    font-family: 'Roboto-Medium', Arial, sans-serif;
    margin-bottom: 0.5rem;
    color: inherit;
}

/* Shared Heading Line Styles */
.block-heading-line {
    border: none;
    height: 2px;
    background-color: currentColor;
    width: 40%;
    margin: 28px 0;
    opacity: 1;
}

/* Alignment based on parent text alignment */
.text-center .block-heading-line,
.block-heading-wrapper.text-center .block-heading-line {
    margin-left: auto;
    margin-right: auto;
}

.text-left .block-heading-line,
.block-heading-wrapper.text-left .block-heading-line {
    margin-left: 0;
    margin-right: auto;
}

.text-right .block-heading-line,
.block-heading-wrapper.text-right .block-heading-line {
    margin-left: auto;
    margin-right: 0;
}

.block-heading-line.heading-line-none {
    display: none;
}

.block-heading-line.heading-line-underline {
    background-color: currentColor;
}

.block-heading-line.heading-line-dashed {
    background: repeating-linear-gradient(
        90deg,
        currentColor,
        currentColor 10px,
        transparent 10px,
        transparent 20px
    );
    height: 3px;
}

.block-heading-line.heading-line-dotted {
    background: repeating-linear-gradient(
        90deg,
        currentColor,
        currentColor 4px,
        transparent 4px,
        transparent 12px
    );
    height: 4px;
    border-radius: 2px;
}

.block-decorative-line {
    width: 60px;
    height: 3px;
    background-color: var(--block-secondary-color);
    margin: 1rem auto;
}

.block-card-grid-description {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 1rem auto 0;
    color: inherit;
    text-align: left;
}

.block-card-grid-items {
    --bs-gutter-x: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.block-card-col {
    margin-bottom: 1rem;
    display: flex;
}

.block-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--block-bg-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Card Styles */
.card-style-default .block-card {
    background-color: transparent;
}

.card-style-bordered .block-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.card-style-shadow .block-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-style-shadow .block-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.block-card-image {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.block-card-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.block-card-title {
    font-family: 'Roboto-Bold', Arial, sans-serif;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--block-primary-color);
    text-align: center;
}

.block-card-title-line {
    border: none;
    height: 2px;
    background-color: var(--block-secondary-color);
    width: 60px;
    margin: 0 auto 0.75rem auto;
}

.block-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
    padding: 1.25rem;
    margin-top: 1rem;
}

.block-card-content {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: inherit;
}

.block-card-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.block-card-content ul ul {
    list-style-type: circle;
}

.block-card-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.block-card-content li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.block-card-content li p {
    margin: 0;
}

.block-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Roboto-Medium', Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--block-primary-color);
    text-decoration: none;
}

.block-card-link:hover {
    text-decoration: underline;
}

.block-card-link i {
    margin-left: 0.5rem;
}

/* ==========================================================================
   Stepped List Block
   ========================================================================== */

.block-stepped-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    width: 100%;
    height: 100%;
    /* Base scale unit for consistent sizing across all elements */
    --stepped-scale: clamp(0.875rem, 0.5rem + 0.8vw, 1.5rem);
}

.block-stepped-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--stepped-scale) * 0.75);
}

.block-stepped-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.block-stepped-item {
    padding: calc(var(--stepped-scale) * 1) calc(var(--stepped-scale) * 2.5);
    font-family: 'Roboto-Medium', Arial, sans-serif;
    font-size: var(--stepped-scale);
    text-align: center;
    border-radius: 50px;
    white-space: nowrap;
    /* Consistent dimensions */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--stepped-scale) * 3.5);
}

/* Width Modifiers - scales with --stepped-scale */
.stepped-width-small .block-stepped-item {
    width: calc(var(--stepped-scale) * 14);
}

.stepped-width-medium .block-stepped-item {
    width: calc(var(--stepped-scale) * 18);
}

.stepped-width-large .block-stepped-item {
    width: calc(var(--stepped-scale) * 22);
}

/* Stepped list in split-column layouts - increase scale */
.umb-block-grid__layout-item:not([data-col-span="12"]) .block-stepped-list {
    --stepped-scale: clamp(1rem, 0.6rem + 1vw, 1.75rem);
    padding: 2rem 0;
}

/* Horizontal Alignment Modifiers */
.stepped-align-left {
    align-items: flex-start;
}

.stepped-align-left .block-stepped-items {
    align-items: flex-start;
}

.stepped-align-left .block-stepped-item-wrapper {
    align-items: flex-start;
}

.stepped-align-center {
    align-items: center;
}

.stepped-align-center .block-stepped-items {
    align-items: center;
}

.stepped-align-center .block-stepped-item-wrapper {
    align-items: center;
}

.stepped-align-right {
    align-items: flex-end;
}

.stepped-align-right .block-stepped-items {
    align-items: flex-end;
}

.stepped-align-right .block-stepped-item-wrapper {
    align-items: flex-end;
}

/* Curved Arrow between items - uses --stepped-scale for consistent sizing */
.block-stepped-arrow {
    color: var(--block-arrow-color, #9a9ab8);
    position: absolute;
    z-index: 10;
    bottom: calc(var(--stepped-scale) * -2);
}

.block-stepped-arrow svg {
    display: block;
    width: calc(var(--stepped-scale) * 3.5);
    height: calc(var(--stepped-scale) * 3.5);
}

/* Arrow positioning - scales proportionally with items */
.block-stepped-arrow.arrow-right {
    right: calc(var(--stepped-scale) * -4);
}

.block-stepped-arrow.arrow-left {
    left: calc(var(--stepped-scale) * -4);
}

/* Star icon - uses --stepped-scale for consistent sizing */
.block-stepped-star {
    color: var(--block-star-color, var(--block-secondary-color));
    position: absolute;
    bottom: calc(var(--stepped-scale) * -1.5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.block-stepped-star svg {
    display: block;
    width: calc(var(--stepped-scale) * 2.5);
    height: calc(var(--stepped-scale) * 2.5);
}

/* Mobile adjustments for stepped list */
@media (max-width: 768px) {
    .block-stepped-list {
        overflow: visible;
        --stepped-scale: clamp(0.9rem, 0.6rem + 1.5vw, 1.25rem);
        /* Add horizontal padding to accommodate arrows that extend outside items */
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .block-stepped-items {
        overflow: visible;
    }

    /* Allow text wrapping on mobile */
    .block-stepped-item {
        white-space: normal;
    }
}

/* ==========================================================================
   Divider Block
   ========================================================================== */

.block-divider {
    display: flex;
}

.block-divider-line {
    border: none;
    background-color: var(--divider-color, var(--block-primary-color));
    margin: 0;
}

/* Alignment */
.divider-align-left {
    justify-content: flex-start;
}

.divider-align-center {
    justify-content: center;
}

.divider-align-right {
    justify-content: flex-end;
}

/* Width */
.divider-width-short .block-divider-line {
    width: 80px;
}

.divider-width-medium .block-divider-line {
    width: 200px;
}

.divider-width-full .block-divider-line {
    width: 100%;
}

/* Thickness */
.divider-thickness-thin .block-divider-line {
    height: 1px;
}

.divider-thickness-medium .block-divider-line {
    height: 3px;
}

.divider-thickness-thick .block-divider-line {
    height: 5px;
}

/* Styles */
.divider-style-solid .block-divider-line {
    background-color: var(--divider-color, var(--block-primary-color));
}

.divider-style-dashed .block-divider-line {
    background: repeating-linear-gradient(
        90deg,
        var(--divider-color, var(--block-primary-color)),
        var(--divider-color, var(--block-primary-color)) 10px,
        transparent 10px,
        transparent 20px
    );
}

.divider-style-double .block-divider-line {
    height: auto;
    background: transparent;
    border-top: 2px solid var(--divider-color, var(--block-primary-color));
    border-bottom: 2px solid var(--divider-color, var(--block-primary-color));
    padding: 3px 0;
}

.divider-style-gradient .block-divider-line {
    background: linear-gradient(
        90deg,
        transparent,
        var(--divider-color, var(--block-primary-color)),
        transparent
    );
}

/* ==========================================================================
   CTA Banner Block
   ========================================================================== */

.block-cta-banner {
    padding: 4rem 0;
    color: var(--block-text-color, var(--block-text-dark));
    background-color: var(--block-bg-color, transparent);
}

.block-cta-heading {
    font-family: 'Roboto-Medium', Arial, sans-serif;
    margin-bottom: 1rem;
    color: inherit;
}

.block-cta-subtitle {
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: inherit;
    opacity: 0.9;
}

.block-cta-button {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Block Grid Layout Enhancements
   ========================================================================== */

/* Prevent horizontal overflow on the block grid */
.umb-block-grid__layout-container {
    overflow-x: hidden;
}

/* Content stretching within grid items - doesn't affect grid placement */
.umb-block-grid__layout-item > section,
.umb-block-grid__layout-item > div {
    height: 100%;
}

.umb-block-grid__layout-item > section > .container,
.umb-block-grid__layout-item > div > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Large screen responsive margins - maintain consistent margins while centering */
@media (min-width: 1540px) {
    .umb-block-grid__layout-item[data-col-span="12"] .container {
        /* Ensures at least 6rem margin on each side while never exceeding 1440px */
        max-width: min(1440px, calc(100% - 12rem));
        margin-left: auto;
        margin-right: auto;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] .container {
        max-width: min(1440px, calc(100% - 12rem));
        margin-left: auto;
        margin-right: auto;
    }

    /* Non-full-width items: maintain margins on large screens */
    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-rich-content .container,
    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-stepped-list .container {
        max-width: min(1440px, calc(100% - 12rem));
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 2200px) {
    .umb-block-grid__layout-item[data-col-span="12"] .container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }

    .umb-block-grid__layout-item[data-row-span="4"][data-col-span="12"] .container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }

    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-rich-content .container,
    .umb-block-grid__layout-item[data-row-span="4"]:not([data-col-span="12"]) .block-stepped-list .container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991px) {
    /* Reduce margins on tablet for full-width elements */
    .umb-block-grid__layout-item[data-col-span="12"] .container {
        margin: 0 50px;
    }

    .block-hero-banner,
    .block-cta-banner {
        padding: 3rem 0;
    }

    .block-card-grid,
    .block-two-column {
        padding: 2rem 0;
    }

    .block-card-grid-header {
        margin-bottom: 2rem;
    }

    /* Two Column Layout - ensure both columns and images display on tablet */
    .block-two-column .row {
        flex-direction: column;
    }

    .block-two-column .block-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .block-two-column .block-column-left,
    .block-two-column .block-column-right {
        display: block;
        min-height: auto;
    }

    .block-two-column .block-column-image {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Override container flex centering for two-column layout to show all content */
    .umb-block-grid__layout-item .block-two-column .container {
        justify-content: flex-start;
        height: auto;
    }

    .umb-block-grid__layout-item[data-row-span="4"] .block-two-column,
    .umb-block-grid__layout-item[data-row-span="4"] .block-two-column > .container {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 767px) {
    /* Reduce margins on mobile for all block grid containers */
    .umb-block-grid__layout-item .container {
        margin: 0 28px !important;
    }

    /* Card Grid mobile adjustments - horizontal scroll snap */
    .block-card-grid-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .block-card-col {
        flex: 0 0 85%;
        min-width: 85%;
        padding-left: 0;
        padding-right: 0;
        scroll-snap-align: start;
    }

    .block-card-body {
        text-align: center;
    }

    .block-card-content {
        text-align: center;
    }

    .block-card-content ul,
    .block-card-content ol {
        text-align: left;
        display: inline-block;
    }

    /* Rich Content Section mobile adjustments */
    .block-rich-content {
        text-align: left;
    }

    .block-rich-body {
        line-height: 1.6;
        text-align: left;
    }

    .block-rich-body.content-size-medium {
        font-size: 1.5rem; /* 24px */
    }

    .block-rich-body.content-size-large {
        font-size: 1.75rem; /* 28px */
    }

    .block-rich-body ul,
    .block-rich-body ol {
        text-align: left;
        padding-left: 1.25rem;
    }

    .block-rich-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Stepped List mobile - override scale and set mobile-specific behavior */
    .block-stepped-list {
        --stepped-scale: clamp(0.95rem, 0.7rem + 1.2vw, 1.2rem);
        padding: 1.5rem 4rem; /* Horizontal padding accommodates arrows */
    }

    .block-stepped-items {
        width: 100%;
    }

    .block-stepped-item-wrapper {
        width: 100%;
    }

    .block-stepped-item {
        white-space: normal;
    }

    /* On mobile, use percentage width for better fit */
    .stepped-width-small .block-stepped-item,
    .stepped-width-medium .block-stepped-item,
    .stepped-width-large .block-stepped-item {
        width: 85%;
        max-width: 22rem;
        min-height: calc(var(--stepped-scale) * 3.5);
    }

    /* Two Column Layout mobile adjustments */
    .block-two-column {
        padding: 1.5rem 0;
    }

    .block-two-column .row.align-items-center,
    .block-two-column .row.align-items-top,
    .block-two-column .row.align-items-bottom {
        gap: 2rem;
    }

    .block-two-column .block-column-left {
        min-height: auto;
    }

    .block-two-column .block-column-right {
        min-height: auto;
    }

    /* Ensure images in both columns display properly on mobile */
    .block-two-column .block-column-image {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .block-column-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .block-column-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* CTA Banner mobile adjustments */
    .block-cta-banner {
        padding: 2rem 0;
        text-align: center;
    }

    .block-cta-heading {
        font-size: 1.5rem;
    }

    .block-cta-subtitle {
        font-size: 1rem;
    }

    /* Block heading line adjustments */
    .block-heading-line {
        width: 60%;
    }
}

@media (max-width: 576px) {
    /* Reduce margins on small mobile for all block grid containers */
    .umb-block-grid__layout-item .container {
        margin: 0 28px !important;
    }

    .block-hero-banner,
    .block-cta-banner {
        padding: 1.5rem 0;
    }

    .block-rich-content,
    .block-card-grid,
    .block-two-column,
    .block-stepped-list {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .pt-large { padding-top: 2rem; }
    .pb-large { padding-bottom: 2rem; }
    .pt-medium { padding-top: 1.5rem; }
    .pb-medium { padding-bottom: 1.5rem; }
    .mt-large { margin-top: 1.5rem; }
    .mb-large { margin-bottom: 1.5rem; }

    /* Rich Content Section small mobile */
    .block-rich-body.content-size-medium {
        font-size: 1.25rem; /* 20px */
    }

    .block-rich-body.content-size-large {
        font-size: 1.5rem; /* 24px */
    }

    .block-rich-cta .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: 0 25px 0 25px;
    }

    /* Stepped List small mobile */
    .block-stepped-list {
        --stepped-scale: clamp(0.85rem, 0.6rem + 1vw, 1rem);
    }

    .block-stepped-item,
    .stepped-width-small .block-stepped-item,
    .stepped-width-medium .block-stepped-item,
    .stepped-width-large .block-stepped-item {
        width: 90%;
        max-width: 20rem;
        min-height: calc(var(--stepped-scale) * 3.5);
        text-align: center;
    }

    /* Card Grid small mobile */
    .block-card-grid-heading {
        font-size: 1.25rem;
    }

    .block-card-title {
        font-size: 1rem;
    }

    .block-card-content {
        font-size: 0.875rem;
    }

    /* Two Column Layout small mobile */
    .block-column-heading {
        font-size: 1.75rem;
    }

    .block-column-content {
        font-size: 1.25rem;
    }

    /* Heading line small mobile */
    .block-heading-line {
        width: 80%;
    }
}
