.tax_updates {
    width: 100%;
    overflow: hidden;
}
.tax_updates h1 {
    font-size: 1.4rem;
    color: var(--headingColor);
    margin-bottom: 2rem;
}
.wrapper {
    width: 100%;
    position: relative;
}
.wrapper i {
    top: 50%;
    height: 50px;
    width: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    position: absolute;
    text-align: center;
    line-height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}
.wrapper i:active {
    transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child {
    left: -22px;
    display: none;
}
.wrapper i:last-child {
    right: -22px;
    display: none;
}
.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel.no-transition {
    scroll-behavior: auto;
}
.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel :where(.card, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel .card {
    scroll-snap-align: start;
    list-style: none;
}

.text_update_card #btn_cntr{
    text-align: center;
    display: inline-block;
}

.text_update_card #btn_cntr button{
    width: 142px;
    height: 38px;
    margin: 20px 64px 10px;
    border-radius: 5px;
    box-shadow: 0px 6px 12px 0 #d5d5d5;
    border: solid 2px #1d8acb;
    background-color: #fff;
}

.text_update_card button:hover, .text_update_card button a:hover {
    background-color: #fff !important;
    color: var(--primaryColor) !important;
}

.text_update_card {
    /* display: flex; */
    display: block;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 0.8rem;
    background: #f3f6f8;
    max-width: 270px;
    height: 380px;
}

.text_update_card h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 0.8rem;
    color: var(--headingColor);
    padding-bottom: 0.3rem;
    margin-bottom: 0px;
}

.text_update_card span {
    align-self: self-start;
    padding-inline: 0.8rem 0.4rem;
    font-weight: 500;
    /* font-size: 0.9rem; */
    margin-top: 0.5rem;
    color: #848989;
}

.text_update_card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.text_update_card button {
    background: #fff;
    color: var(--primaryColor);
    /* outline: 1px solid var(--darkBlue); */
    border: 2px solid var(--primaryColor);
    font-size: 0.9rem;
    border-radius: 0.3rem;
    padding: 0.2rem 0.6rem;
    /* margin-top: 2rem; */
    margin-bottom: 1rem;
    transition: all 0.2s ease-in;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.text_update_card button:hover {
    background: var(--primaryColor);
    color: #fff;
}

.tax_updates_button {
    display: block;
    background: var(--darkBlue);
    width: 8.75rem;
    height: 2.5rem;
    margin-inline: auto;
    border-radius: 0.4rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    margin-top: 2rem;
}

@media screen and (max-width: 1030px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 3) - 9px);
    }
}

@media screen and (max-width: 904px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }

    .tax_updates_button {
        width: 100%;
        margin-top: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }

    .wrapper i:first-child {
        display: none;
    }
}