.subhero-cta-section {
    background: var(--subhero-section-bg-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.subhero-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.show-subhero-desktop-mobile .subhero-nav-items {
    display: flex;
}

.show-subhero-desktop .subhero-nav-items {
    display: none;
}

.show-subhero-mobile .subhero-nav-items {
    display: flex;
}

.subhero-nav-items {
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.subhero-nav-item {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 100%;
}

.subhero-nav-item>a {
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.subhero-image {
    display: block;
    overflow: hidden;
}

.subhero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.subhero-image:hover>img {
    transform: scale(1.05);
}


.subhero-title {
    text-align: center;
    font-size: var(--subhero-mobile-label-font-size);
    color: var(--subhero-mobile-label-font-color);
}

.subhero-nav-label-mobile-overlay .subhero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 1rem;
}

.subhero-nav-label-mobile-overlay .subhero-image:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--subhero-mobile-overlay-bg-color);
    pointer-events: none;
}

.subhero-nav-label-mobile-hide .subhero-title {
    display: none;
}

.subhero-nav-label-mobile-above .subhero-title {
    display: block;
    position: unset;
    transform: unset;
    order: -5;
    font-weight: normal;
    padding: 0.5rem;
}

.subhero-nav-label-mobile-below .subhero-title {
    display: block;
    position: unset;
    transform: unset;
    font-weight: normal;
    padding: 0.5rem;
}

.subhero-image-outline .subhero-image {
    border: var(--subhero-outline-thickness, 1px) solid var(--subhero-outline-color);
}

.subhero-btn-outline.subhero-nav-label-desktop-btn .subhero-title,
.subhero-btn-outline.subhero-nav-label-mobile-btn .subhero-title {
    border-color: var(--subhero-btn-outline-color);
}

.subhero-image,
.subhero-image img {
    border-radius: var(--subhero-image-border-radius);
}

.subhero-scroll-btn {
    display: none;
}

@media only screen and (max-width: 879px) {

    .subhero-mobile-grid {
        --subhero-image-ratio: 1 / 1;
    }

    .subhero-mobile-grid .subhero-nav-item {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
    }

    .subhero-mobile-grid .subhero-image img {
        height: 100%;
    }

    .subhero-nav-label-mobile-above .subhero-image+.subhero-title {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .subhero-nav-label-mobile-above:not(.subhero-nav-label-mobile-btn) .subhero-image+.subhero-title {
        padding: 0;
    }

    .subhero-nav-label-mobile-below .subhero-image+.subhero-title {
        margin-top: 1rem;
        margin-bottom: 0;
    }

    .subhero-nav-label-mobile-below:not(.subhero-nav-label-mobile-btn) .subhero-image+.subhero-title {
        padding: 0;
    }

    .subhero-nav-label-mobile-btn .subhero-title {
        padding: 0.5em 1em;
        background: var(--subhero-mobile-label-btn-bg-color);
        border: var(--subhero-outline-thickness, 1px) solid var(--subhero-mobile-label-btn-bg-color);
        border-radius: var(--subhero-image-border-radius, var(--subhero-desktop-label-btn-border-radius));
        cursor: pointer;
        transition: all 0.4s ease;
    }

    .subhero-nav-label-mobile-btn .subhero-title:hover,
    .subhero-nav-label-mobile-btn .subhero-title:focus,
    .subhero-nav-label-mobile-btn .subhero-title:active {
        background: var(--subhero-mobile-label-btn-hover-bg-color);
        border-color: var(--subhero-mobile-label-btn-hover-bg-color);
    }

    .subhero-nav-label-mobile-btn:not(.subhero-nav-label-mobile-overlay) .subhero-title {
        width: 100%;
    }

    .subhero-mobile-scroll.subhero-container {
        padding-left: 0;
        padding-right: 0;
        position: relative;
    }

    .subhero-scroll-viewport {
        overflow: hidden;
        width: 78%;
        margin-left: auto;
        margin-right: auto;
    }

    .subhero-mobile-scroll .subhero-nav-items {
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
        transition: transform 0.4s ease;
    }

    .subhero-mobile-scroll .subhero-nav-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .subhero-scroll-btn {
        display: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: none;
        color: #fff;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .subhero-scroll-btn svg {
        width: 4rem;
        height: 4rem;
        filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
    }

    .subhero-mobile-scroll .subhero-scroll-btn {
        display: flex;
    }

    .subhero-scroll-btn--prev {
        left: 0;
    }

    .subhero-scroll-btn--next {
        right: 0;
    }

    .subhero-scroll-btn.is-hidden {
        display: none;
    }
}

@media only screen and (min-width: 880px) {
    .subhero-cta-section {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        margin-bottom: 0;
    }

    .subhero-container {
        max-width: calc(110 * 18px);
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .subhero-nav-items {
        flex-wrap: nowrap;
    }

    .subhero-nav-item {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }

    .show-subhero-desktop .subhero-nav-items {
        display: flex;
    }

    .show-subhero-mobile .subhero-nav-items {
        display: none;
    }

    .subhero-title {
        font-size: var(--subhero-desktop-label-font-size);
        color: var(--subhero-desktop-label-font-color);
        transition: color 0.4s ease;
    }

    .subhero-title:hover,
    .subhero-nav-label-desktop-overlay:not(.subhero-nav-label-desktop-btn) .subhero-nav-item-link:hover .subhero-title {
        color: var(--subhero-desktop-label-font-hover-color);
    }

    .subhero-nav-label-mobile-overlay .subhero-image:after {
        display: none;
    }

    .subhero-nav-label-desktop-overlay {
        --subhero-image-ratio: 8 / 5;
    }

    .subhero-nav-label-desktop-overlay .subhero-image img {
        height: 100%;
    }

    .subhero-nav-label-desktop-overlay .subhero-image:after {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: var(--subhero-desktop-overlay-bg-color);
        pointer-events: none;
    }

    .subhero-nav-label-desktop-overlay .subhero-title {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 1rem;
    }

    .subhero-nav-label-desktop-hide .subhero-title {
        display: none;
    }

    .subhero-nav-label-desktop-above .subhero-title {
        display: block;
        position: unset;
        transform: unset;
        order: -5;
        font-weight: normal;
        padding: 0.5rem;
    }

    .subhero-nav-label-desktop-above .subhero-image+.subhero-title {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .subhero-nav-label-desktop-above:not(.subhero-nav-label-desktop-btn) .subhero-image+.subhero-title {
        padding: 0;
    }

    .subhero-nav-label-desktop-below .subhero-title {
        display: block;
        position: unset;
        transform: unset;
        order: unset;
        font-weight: normal;
        padding: 0.5rem;
    }

    .subhero-nav-label-desktop-below .subhero-image+.subhero-title {
        margin-top: 1rem;
        margin-bottom: 0;
    }

    .subhero-nav-label-desktop-below:not(.subhero-nav-label-desktop-btn) .subhero-image+.subhero-title {
        padding: 0;
    }

    .subhero-nav-label-desktop-btn .subhero-title {
        padding: 0.5em 1em;
        background: var(--subhero-desktop-label-btn-bg-color);
        border: var(--subhero-outline-thickness, 1px) solid var(--subhero-desktop-label-btn-bg-color);
        border-radius: var(--subhero-image-border-radius, var(--subhero-desktop-label-btn-border-radius));
        cursor: pointer;
        transition: all 0.4s ease;
    }

    .subhero-nav-label-desktop-btn .subhero-title:hover,
    .subhero-nav-label-desktop-btn .subhero-title:focus,
    .subhero-nav-label-desktop-btn .subhero-title:active {
        background: var(--subhero-desktop-label-btn-hover-bg-color);
        border-color: var(--subhero-desktop-label-btn-hover-bg-color);
    }

    .subhero-nav-label-desktop-btn:not(.subhero-nav-label-desktop-overlay) .subhero-title {
        width: 100%;
    }

    .subhero-cta-section .subhero-nav-label-desktop-btn:not(.subhero-nav-label-desktop-overlay) .subhero-title {
        font-size: 65%;
    }
}

@media only screen and (min-width: 1100px) {
    .subhero-cta-section .subhero-nav-label-desktop-btn:not(.subhero-nav-label-desktop-overlay) .subhero-title {
        font-size: 75%;
    }
}

@media only screen and (min-width: 1250px) {
    .subhero-cta-section .subhero-nav-label-desktop-btn:not(.subhero-nav-label-desktop-overlay) .subhero-title {
        font-size: 90%;
    }
}

@media only screen and (min-width: 1440px) {
    .subhero-cta-section .subhero-nav-label-desktop-btn:not(.subhero-nav-label-desktop-overlay) .subhero-title {
        font-size: 100%;
    }
}

/* Nav List with Arrow Design */
.subhero-nav-list {
    display: none;
}

.subhero-nav-list.show-subhero-desktop-mobile,
.subhero-nav-list.show-subhero-mobile {
    display: block;
}

.subhero-nav-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    text-decoration: none;
    color: var(--subhero-mobile-label-font-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.2s ease;
}

.subhero-nav-list__item:last-child {
    border-bottom: none;
}

.subhero-nav-list__item:hover {
    color: var(--subhero-mobile-label-font-hover-color, #fefefe);
    opacity: 0.75;
}

.subhero-nav-list__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subhero-nav-list__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.subhero-nav-list__description {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.3;
}

.subhero-nav-list__arrow-circle {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--subhero-nav-list-circle-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    color: var(--subhero-nav-list-circle-text-color);
}

.subhero-nav-list__arrow-circle svg {
    width: 1rem;
    height: 1rem;
}

@media only screen and (min-width: 880px) {

    .subhero-nav-list.show-subhero-desktop-mobile,
    .subhero-nav-list.show-subhero-desktop {
        display: block;
    }

    .subhero-nav-list.show-subhero-mobile {
        display: none;
    }

    .subhero-nav-list {
        max-width: calc(110 * 18px);
        width: calc(100% - 2rem);
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: row;
    }

    .subhero-nav-list.show-subhero-desktop-mobile,
    .subhero-nav-list.show-subhero-desktop {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .subhero-nav-list__item {
        flex: 1 1 auto;
        max-width: 25%;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1.375rem 1.75rem;
        color: var(--subhero-desktop-label-font-color);
    }

    .subhero-nav-list__item:hover {
        color: var(--subhero-desktop-label-font-hover-color);
    }

    .subhero-nav-list__item:last-child {
        border-right: none;
    }

    .subhero-nav-list__title {
        font-size: 1.0625rem;
    }
}


/* Title line (Add Line Under Titles) */
.subhero-title-line .subhero-nav-item {
    display: flex;
}

.subhero-title-line .subhero-nav-item>a {
    flex: 1 1 auto;
}

@media only screen and (max-width: 879px) {
    .subhero-title-line.subhero-nav-label-mobile-above:not(.subhero-nav-label-mobile-btn) .subhero-title,
    .subhero-title-line.subhero-nav-label-mobile-below:not(.subhero-nav-label-mobile-btn) .subhero-title {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 0.75rem;
    }

    .subhero-title-line.subhero-nav-label-mobile-above:not(.subhero-nav-label-mobile-btn) .subhero-title {
        justify-content: flex-end;
    }

    .subhero-title-line.subhero-nav-label-mobile-above:not(.subhero-nav-label-mobile-btn) .subhero-title::after,
    .subhero-title-line.subhero-nav-label-mobile-below:not(.subhero-nav-label-mobile-btn) .subhero-title::after {
        content: '';
        display: block;
        width: 70%;
        height: 4px;
        margin: 0 auto;
        background: var(--subhero-title-line-color);
    }

    .subhero-title-line.subhero-nav-label-mobile-below:not(.subhero-nav-label-mobile-btn) .subhero-title::after {
        margin-top: auto;
    }

    /* Overlay: title text is anchored above a fixed line position so lines align across items with different title lengths */
    .subhero-title-line.subhero-nav-label-mobile-overlay:not(.subhero-nav-label-mobile-btn) .subhero-title {
        top: auto;
        bottom: 45%;
        left: 0;
        width: 100%;
        transform: none;
        padding: 1rem 1rem 0.75rem;
    }

    .subhero-title-line.subhero-nav-label-mobile-overlay:not(.subhero-nav-label-mobile-btn) .subhero-image::before {
        content: '';
        position: absolute;
        top: 55%;
        left: 50%;
        z-index: 1;
        width: 70%;
        height: 4px;
        transform: translateX(-50%);
        background: var(--subhero-title-line-color);
        pointer-events: none;
    }
}

@media only screen and (min-width: 880px) {
    .subhero-title-line.subhero-nav-label-desktop-above:not(.subhero-nav-label-desktop-btn) .subhero-title,
    .subhero-title-line.subhero-nav-label-desktop-below:not(.subhero-nav-label-desktop-btn) .subhero-title {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 0.75rem;
    }

    .subhero-title-line.subhero-nav-label-desktop-above:not(.subhero-nav-label-desktop-btn) .subhero-title {
        justify-content: flex-end;
    }

    .subhero-title-line.subhero-nav-label-desktop-above:not(.subhero-nav-label-desktop-btn) .subhero-title::after,
    .subhero-title-line.subhero-nav-label-desktop-below:not(.subhero-nav-label-desktop-btn) .subhero-title::after {
        content: '';
        display: block;
        width: 70%;
        height: 4px;
        margin: 0 auto;
        background: var(--subhero-title-line-color);
    }

    .subhero-title-line.subhero-nav-label-desktop-below:not(.subhero-nav-label-desktop-btn) .subhero-title::after {
        margin-top: auto;
    }

    .subhero-title-line.subhero-nav-label-desktop-overlay:not(.subhero-nav-label-desktop-btn) .subhero-title {
        top: auto;
        bottom: 35%;
        left: 0;
        width: 100%;
        transform: none;
        padding: 1rem 1rem 0.75rem;
    }

    .subhero-title-line.subhero-nav-label-desktop-overlay:not(.subhero-nav-label-desktop-btn) .subhero-image::before {
        content: '';
        position: absolute;
        top: 65%;
        left: 50%;
        z-index: 1;
        width: 70%;
        height: 4px;
        transform: translateX(-50%);
        background: var(--subhero-title-line-color);
        pointer-events: none;
    }
}
