.nportfolio .headingbox,
.testmonial .headingbox,
.staffcansection.portfolio-projects .headingbox {
    text-align: center;
}

.nportfolio .headingbox:after,
.testmonial .headingbox:after,
.staffcansection.portfolio-projects .headingbox:after {
    display: none;
}

.nportfolio .headingbox h6.subhead,
.testmonial .headingbox h6.subhead {
    display: flex;
    width: max-content;
    max-width: 92%;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
    background:
        linear-gradient(#17171d, #17171d) padding-box,
        linear-gradient(90deg, #7c5cff, #ff5ea8 55%, #ff8a3d) border-box;
    border: 1px solid transparent;
}

.nportfolio .headingbox .head22,
.testmonial .headingbox .head22,
.staffcansection.portfolio-projects .headingbox h3 {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 14px;
    position: relative;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: none;
    background: none;
}

.testmonial .headingbox .sec-accent,
.staffcansection.portfolio-projects .headingbox .sec-accent {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    color: transparent;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 38%, #f472b6 68%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.testmonial .headingbox .head22::before,
.staffcansection.portfolio-projects .headingbox h3::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 6px;
    width: 16px;
    height: 16px;
    background:
        linear-gradient(#ff8a3d, #ff8a3d) center 2px / 12px 3px no-repeat,
        linear-gradient(#ff8a3d, #ff8a3d) 2px center / 3px 11px no-repeat;
    transform: rotate(-28deg);
    border-radius: 2px;
}

.testmonial .headingbox .sec-accent::after,
.staffcansection.portfolio-projects .headingbox .sec-accent::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 2px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 16' preserveAspectRatio='none'%3E%3Cpath d='M4 11Q180 4 356 8' fill='none' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop stop-color='%237c6cf0'/%3E%3Cstop offset='.42' stop-color='%23d946ef'/%3E%3Cstop offset='.7' stop-color='%23f472b6'/%3E%3Cstop offset='1' stop-color='%23fb923c'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") left center / 100% 100% no-repeat;
    pointer-events: none;
}

.testmonial .headingbox .head22 img {
    display: inline-block;
    width: 34px;
    height: auto;
    margin-left: 6px;
    vertical-align: -6px;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.testmonial .headingbox > p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #c5cad6;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .nportfolio .headingbox .head22,
    .testmonial .headingbox .head22,
    .staffcansection.portfolio-projects .headingbox h3 {
        font-size: 30px;
    }

    .nportfolio .headingbox .head22::before,
    .testmonial .headingbox .head22::before,
    .staffcansection.portfolio-projects .headingbox h3::before {
        display: none;
    }
}
