.carousel-wrap {
    position: relative;
    background: #102d46;
}

.carousel-wrap::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 1px;
    background: rgba(255, 255, 255, .22);
    content: "";
    pointer-events: none;
}

.carousel-inner,
.carousel-item {
    position: relative;
}

.carousel-item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 24, 38, .12) 24%, rgba(7, 24, 38, .62) 100%);
    content: "";
    pointer-events: none;
}

.carousel-item > a {
    display: block;
}

.carousel-item > a > img {
    display: block;
    width: 100%;
    height: clamp(520px, 48vw, 760px);
    object-fit: cover;
}

.motion-ready .carousel-item.active > a > img {
    animation: hero-image-enter 6s ease-out both;
}

.motion-ready .carousel-item.active .imgdesccontent {
    animation: hero-copy-enter .9s .2s cubic-bezier(.22, 1, .36, 1) both;
}

.carousel-item.active .imgdesccontent .title {
    animation: hero-title-bounce 1.15s .35s both, hero-title-float 2.8s 1.55s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

@keyframes hero-image-enter {
    from {
        transform: scale(1.045);
    }

    to {
        transform: scale(1);
    }
}

@keyframes hero-copy-enter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-title-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(.215, .61, .355, 1);
    }

    40%, 43% {
        transform: translateY(-24px) scaleY(1.03);
        animation-timing-function: cubic-bezier(.755, .05, .855, .06);
    }

    70% {
        transform: translateY(-11px);
        animation-timing-function: cubic-bezier(.755, .05, .855, .06);
    }

    90% {
        transform: translateY(-4px);
    }
}

@keyframes hero-title-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.carousel-inner .carousel-item .imgdesc {
    position: absolute;
    right: 0;
    bottom: 12%;
    left: 0;
    z-index: 3;
    width: 100%;
    padding: 0 24px;
    color: #fff;
    text-align: center;
}

.carousel-inner .imgdesccontent {
    width: min(900px, 90%);
    margin: 0 auto;
}

.carousel-inner .imgdesccontent .title {
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .22);
}

.carousel-inner .imgdesccontent .desc {
    margin-top: 16px;
    white-space: pre-wrap;
}

.carousel-inner .imgdesccontent .desc .content {
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.carousel-indicators {
    z-index: 4;
    bottom: 24px;
    margin-bottom: 0;
}

.carousel-indicators li {
    width: 28px;
    height: 3px;
    margin-right: 5px;
    margin-left: 5px;
    border: 0;
    border-radius: 0;
    opacity: .5;
    transition: width .25s ease, opacity .25s ease;
}

.carousel-indicators li.active {
    width: 48px;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 4;
    width: 8%;
    opacity: .72;
}

.home-section {
    padding: 88px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading .eyebrow {
    margin: 0 0 8px;
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 18px;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.3;
}

.section-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 3px;
    background: var(--brand-red);
    content: "";
    transform: translateX(-50%);
}

.advantage {
    background: #fff;
}

.advantage .row {
    margin-right: -12px;
    margin-left: -12px;
}

.advantage [class*="col-"] {
    display: flex;
    padding-right: 12px;
    padding-left: 12px;
}

.advantage .thumbnail {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 310px;
    margin: 0;
    padding: 34px 28px 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 34px rgba(22, 49, 71, .06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.advantage .thumbnail::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--brand-blue);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.advantage .thumbnail:hover {
    border-color: #cbd9e5;
    box-shadow: 0 20px 48px rgba(22, 69, 104, .13);
    transform: translateY(-6px);
}

.advantage .thumbnail:hover::before {
    transform: scaleX(1);
}

.advantage .icon-wrap {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    place-items: center;
    background: #edf6fc;
    border-radius: 6px;
}

.advantage .thumbnail img {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
    object-fit: contain;
}

.advantage .caption {
    margin: 0;
}

.advantage .caption h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;
}

.advantage .caption p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.partner {
    background: var(--surface);
    border-top: 1px solid #edf1f5;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.partner-item {
    display: grid;
    min-height: 112px;
    padding: 18px;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.partner-item:hover {
    border-color: #cad8e4;
    box-shadow: 0 12px 30px rgba(22, 49, 71, .09);
    transform: translateY(-3px);
}

.partner-item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 62px;
    margin: 0 auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform .25s ease;
}

.partner-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 1199px) {
    .home-section {
        padding: 72px 0;
    }

    .advantage [class*="col-"] {
        margin-bottom: 24px;
    }

    .advantage .thumbnail {
        min-height: 280px;
    }

    .partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .carousel-item > a > img {
        height: 58vw;
        min-height: 260px;
        max-height: 430px;
    }

    .carousel-inner .carousel-item .imgdesc {
        bottom: 14%;
        padding: 0 18px;
    }

    .carousel-inner .imgdesccontent {
        width: 100%;
    }

    .carousel-inner .imgdesccontent .title {
        font-size: 25px;
    }

    .carousel-inner .imgdesccontent .desc {
        margin-top: 8px;
    }

    .carousel-inner .imgdesccontent .desc .content {
        display: -webkit-box;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .carousel-indicators {
        bottom: 12px;
    }

    .carousel-indicators li {
        width: 20px;
    }

    .carousel-indicators li.active {
        width: 32px;
    }

    .home-section {
        padding: 56px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .advantage [class*="col-"] {
        margin-bottom: 14px;
    }

    .advantage .thumbnail {
        min-height: 0;
        padding: 26px 22px;
    }

    .advantage .icon-wrap {
        margin-bottom: 20px;
    }

    .advantage .caption h3 {
        font-size: 19px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .partner-item {
        min-height: 92px;
        padding: 14px;
    }

    .partner-item img {
        height: 48px;
        filter: none;
        opacity: 1;
    }
}
