section {
    width: 100%;
}

section p, section li {
    line-height: 1.6;
}

.body, .hero-section, .simple-blue-section, .trusted-by-section {
    background: var(--color-hero-background);
}

/* Hero fading title (animation keyframes generated inline per-page based on count) */
h1.has-fadingTitle {
    margin-bottom: 0;
}
.hero-fade {
    position: relative;
    height: 1.5em;
    margin: 0;
    margin-top: 1rem;
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.hero-fade span {
    position: absolute;
    opacity: 0;
}
.hero-fade.single span {
    opacity: 1;
}

section h2{
    margin-top:0;
}

section h3{
    margin-bottom:0;
}

    .simple-blue-section h2 {
        display: inline;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .simple-blue-section p {
        text-align: center;
        margin: 0;
    }
    .simple-blue-section a {
        margin-left: auto;
        margin-right: auto;
    }


    .section-text > .button {
        margin-top: 1em;
        display: inline-block;
    }

.line-divider {
    background-color: var(--color-secondary);
    width: 15%;
    height: 3px;
}

ul {
    list-style-image: url('../images/listitem.svg');
    padding-left: 24px;
}

ul li {
    padding-left: 10px;
}


section .section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-24) var(--space-6);
}

section.title-section .section-content {
    display: block;
    padding-bottom: 0;
}

.body-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-24) var(--space-6);
}

.trusted-by-section .section-content {
    padding-top: 0;
}

.trusted-by {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: center;
    align-items: center;
    width: 100%;
    color: var(--color-text-muted);
}

.trusted-by-item:first-child {
    padding-right: var(--space-8);
}

.trusted-by-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trusted-by-item img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

section .section-image {
    flex: 0 0 40%; /* fixed 40% width */
    max-width: 40%; /* ensures flexbox doesn�t grow */
    
}

    section .section-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1.5rem;
    }

section .section-text {
    flex: 1 1 55%; /* remaining width */
    min-width: 250px;
    
}

section.reverse .section-text {
    order: 2; /* move text after image */
}

section.reverse .section-image {
    order: 1; /* move image before text */
}




.section-topcorner {
    background-color: white;
    border-radius: 0 0 3rem 3rem;
    position: relative;
    margin-bottom: -50px;
    height: 50px;
}

.section-bottomcorner {
    background-color: white;
    border-radius: 3rem 3rem 0 0;
    position: relative;
    margin-top: -50px;
    height: 50px;
}

section.map3columns-section h2,
.title-section .section-eyebrow,
.title-section h2 {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: block;
}

.section-eyebrow {
    font-size: 1rem;
    color: #555555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}


section.map3columns-section {
    display: flex;
    flex-direction: row; /* horizontal cards */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    gap: 1rem; /* spacing between cards */
    justify-content: center;
    align-items: stretch; /* ensures all cards in the row have same height */
    padding: 2rem;
    text-align: center;
    color: white;
    background-image: url(../images/map.svg);
    background-size: cover;
    background-position: center;
}

    section.map3columns-section .section-content h2,
    section.map3columns-section .section-content p {
        flex: 0 0 100%;
    }

section.success-stories-section h2 {
    margin-left: auto;
    margin-right: auto;
}

.section-title-on-dark {
    width: 100%;
    color: var(--color-white);
}

section.success-stories-section {
    display: flex;
    flex-direction: row; /* horizontal cards */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    gap: 1rem; /* spacing between cards */
    justify-content: center;
    align-items: stretch; /* ensures all cards in the row have same height */
    padding: 2rem;
    text-align: center;
    background-image: url(../images/map.svg);
    background-size: cover;
    background-position: center;
}

section.success-stories-section .section-content h2,
section.success-stories-section .section-content p {
    flex: 0 0 100%;
}


.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    flex: 1 1 300px;
    min-width: 250px;
    padding: var(--space-6);
    background-color: white;
    color: black;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

    .card img {
        width: 56px;
        height: 56px;
        margin-left: -10px;
        margin-top: 22px;
    }
    .card div.bullet {
        background-image: url('../images/menu-bullet.svg');
        background-size: contain;
        background-repeat:no-repeat;
        margin-left: auto;
        width: 96px;
        height: 96px;
        margin-right: auto;
        margin-bottom: 1em;
    }
    .card div.bullet-small {
        width: 20px;
        margin-bottom: 0;
    }
        .card img:not(.bullet) {
        width: 100%;
        height: 200px;
        border-radius: 1rem;
        object-fit: cover;
    }

.card > :last-child {
    margin-top: auto;
}

    .card a {
        color: black;
        text-decoration: none;
    }

    .card h3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: var(--fs-xl);
        color: var(--color-text-muted);
        margin-top: 0;
    }

.card  h3::before {
    content: "";
    height: 0;
    position:absolute;
    background-image: none;
}

/* ============================================================
   Tablet (max-width: 1023px)
   ============================================================ */
@media (max-width: 1023px) {
    section .section-content {
        padding: var(--space-16) var(--space-6);
    }

    .body-content {
        padding: var(--space-16) var(--space-6);
    }

    .accordion-item {
        padding-right: 0;
    }

    .accordion-image {
        position: static;
        opacity: 1;
        z-index: auto;
    }

    .accordion-image img {
        width: 100%;
        max-width: 480px;
    }
}

/* ============================================================
   Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    section .section-content {
        padding: var(--space-12) var(--space-4);
        gap: var(--space-6);
    }

    .body-content {
        padding: var(--space-12) var(--space-4);
    }

    /* Stack 2-column sections vertically; image follows text */
    section .section-text,
    section .section-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Force reading order: text first, image second, on every section */
    section.reverse .section-text { order: 1; }
    section.reverse .section-image { order: 2; }

    .hero-fade {
        font-size: var(--fs-2xl);
    }

    .trusted-by {
        gap: var(--space-4);
    }

    .trusted-by-item:first-child {
        padding-right: 0;
        flex: 1 1 100%;
        text-align: center;
    }

    .trusted-by-item img {
        height: 24px;
    }

    .accordion-item {
        padding-right: 0;
    }
}