.account-features {
    background-color: var(--color-navy-blue);
    padding: 110px 0;
    color: var(--color-white);
    overflow: hidden;
    background-image: url(triangle.png);
    background-position: left 65% bottom -24px;
    background-repeat: no-repeat;
    background-size: 211px;
}

.account-features__container {
    position: relative;
    z-index: 2;
}

.account-features:before {
    content: '';
    position: absolute;
    top: -54px;
    left: 112px;
    width: 209px;
    height: 216px;
    background: url(arrow.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.account-features:after {
    content: '';
    position: absolute;
    top: 88px;
    right: 88px;
    width: 173px;
    height: 174px;
    background: url(square.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.account-features__feature-heading {
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-white);
}

.account-features__carousel-wrap {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.account-features__slick {
    padding-bottom: 30px;
    overflow: visible;
}

.account-features__slick .slick-list {
    overflow: visible;
}

.account-features__slide {
    height: auto;
}

.account-features__slick .slick-slide {
    margin: 0 10px;
}

@media (min-width: 768px) {
    .account-features__slick .slick-slide {
        margin: 0 12.5px;
    }
}

.account-features__feature-card {
    display: flex;
    flex-direction: column;
    height: 380px;
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.7s ease;
    transform: translateY(0);
    /* Moved max-width here from .slick-slide to prevent dragging bugs */
    margin: 0 auto;
}


.account-features__slick .slick-track:hover .account-features__feature-card {
    transform: translateY(15px);
}

.account-features__slick .slick-track:hover .account-features__feature-card:hover {
    background-color: var(--color-teal-light);
    transform: translateY(-15px);
}

.account-features__card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-features__card-title {
    margin: 0;
}

.account-features__card-desc p {
    color: var(--color-black);
    margin: 0;
}

.account-features__feature-card:hover .account-features__card-desc {
    color: var(--color-black);
}

.account-features__card-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.account-features__card-link .btn-primary:before {
    display: none;
}

.account-features__card-link .btn-primary.btn-has-flip {
    padding: 0;
    background: transparent;
    color: var(--color-black);
}

.account-features__card-link span {
    color: var(--color-black);
}

.account-features__card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.account-features__feature-card:hover .account-features__card-link svg {
    transform: translateX(5px);
}

.account-features__card-bg-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}

.account-features__feature-card:hover .account-features__card-bg-mask {
    transform: scale(1.1);
}

.account-features__nav-arrows {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.account-features__arrow {
    position: static;
    margin: 0;
}

@media (min-width: 769px) {
    .account-features__pagination {
        display: none;
    }
}

@media (max-width: 768px) {
    .account-features__feature-card {
        padding: 25px 30px;
    }

    .account-features {
        padding: 60px 0;
        background-size: 116px;
        background-position: left 95% bottom -10px;
    }

    .account-features:before {
        width: 115px;
        height: 116px;
        left: 42px;
        top: -60px;
    }

    .account-features:after {
        display: none;
    }

    .account-features__feature-heading {
        margin-bottom: 40px;
        font-size: var(--font-size-lead-in-1);
        line-height: var(--line-height-lead-in-1);
    }

    .account-features__nav-arrows {
        margin-top: 10px;
    }

    .account-features__pagination {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
}

/* Slick Dots Styling (matching global Swiper dots) */
.account-features__pagination .slick-dots {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-features__pagination .slick-dots li {
    margin: 0;
}

.account-features__pagination .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: inline-block;
    width: 4px;
    height: 3px;
    background-color: var(--color-white);
    opacity: 0.4;
    border-radius: 0;
    margin: 0 6px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.account-features__pagination .slick-dots li.slick-active button {
    width: 49px;
    opacity: 1;
}