.to_main_hero:after {
    transform: none;
    height: 0;
}

.to_main_hero {
    height: 860px;
    position: relative;
    padding: 0;

}

.decorative-box > .bg {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    z-index: 0;
    background-color: var(--secondary-background-color);
    background-size: cover;
}

.decorative-box > .bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, var(--secondary-background-color) 0%, transparent);
}

.to_index_nav .brand-logo, nav.nav-not-lggd .brand-logo {
    top: 50%;
    transform: translateY(100%);
}

.decorative-box {
    position: relative;
    margin-top: 2%;
    left: 2%;
    width: 96%;
    min-height: 820px;
    border-radius: 15px;
    border: 10px solid var(--primary-accent-color); /* Thick border */
}

.to_main_hero_filters {
    margin-top: -450px;
    position: relative;
}

.home-page-container {
    min-height: 900px;
    width: 100%;
    position: relative;
}

.blurbs-container {
    min-height: unset;
    margin-top: 40px;
    padding-bottom: 20px;
}

.blurbs-container .decorative-box {
    min-height: unset;
}

/* Linked blurbs layout — keeps image + content aligned across uneven image heights */
.linked-blurbs-row {
    display: flex;
}

.linked-blurb-col {
    display: flex;
    flex-direction: column;
    float: none; /* override Bootstrap's float-based grid */
}

.linked-blurb-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Bottom row: content grows to fill so images always sit at the bottom */
.linked-blurbs-bottom-row .linked-blurb-content {
    flex: 1;
}

.blurb {
    text-align: center;
    background-color: var(--primary-background-color);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blurb-cta-container {
    margin-top: auto;
}

.blurb-header {
    color: var(--primary-accent-color);
}

.blurb-content {
    color: var(--primary-text-color);
    line-height: 20px;
    font-size: var(--font-md);
}

.right-half {
    width: 50%; /* Restrict to the right half */
    display: flex;
    justify-content: center; /* Center inside the right half */
    align-items: center;
}

.parent {
    display: flex;
    justify-content: flex-end; /* Push content to the right half */
    align-items: center; /* Center vertically */
}

.brand-logo {
    width: 300px;
}

.brand-logo-size-small .brand-logo {
    width: 240px;
}

.brand-logo-size-large .brand-logo {
    width: 390px;
}

.brand-logo-container {
    text-align: center;
    position: absolute;
    left: -25%;
    bottom: calc(100% + 20px);
    width: 150%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo-tagline {
    width: 100%;
    text-align: center;
}

.brand-logo-sub-tagline {
    margin: 0;
    font-size: var(--font-md);
    color: var(--primary-text-color);
    text-align: center;
    white-space: nowrap;
}


.join-text {
    background: linear-gradient(to bottom, var(--primary-text-color), var(--secondary-accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width:100%;
    font-size: calc(400px / (var(--char-count, 10) * 0.7));
    white-space: nowrap;
    text-align: center;
    align-content: center;
    align-items: center;

}

/* media 900px */
@media (max-width: 900px) {
    .decorative-box > .bg {

        width: 100%;
    }

    .decorative-box > .bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 2px;
        width: 100%;
        height: 100%;
        background: transparent;
    }

    .parent {

        justify-content: center; /* Push content to the right half */

    }




}