/*
 * Home blog section.
 * Source: Elementor page 82282, section bb5a0f3 and RSElements widget 1230dd45.
 */

.ait-home-blog,
.ait-home-blog * {
    box-sizing: border-box;
}

.ait-home-blog {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 50px 0;
    overflow: hidden;
    background-color: #fff;
    background-image: url("../images/home/blog/background-shape.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #606060;
}

.ait-home-blog__inner {
    width: min(100%, 1340px);
    margin: 0 auto;
    padding: 10px 12px 90px 3px;
}

.ait-home-blog__heading {
    padding: 0 0 38px;
    text-align: center;
}

.ait-home-blog__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.ait-home-blog__eyebrow img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ait-home-blog__eyebrow span {
    color: transparent;
    background-color: #f79c53;
    background-image: linear-gradient(90deg, #ff3838 0%, #f79c53 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ait-home-blog__title {
    margin: 0;
    color: #32377c;
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.ait-home-blog__viewport {
    width: 100%;
    overflow: hidden;
    outline: none;
}

.ait-home-blog__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.ait-home-blog__card {
    min-width: 0;
    margin: 0 10px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.ait-home-blog__image-link {
    display: block;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.ait-home-blog__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 650;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.ait-home-blog__card:hover .ait-home-blog__image,
.ait-home-blog__image-link:focus-visible .ait-home-blog__image {
    filter: none;
}

.ait-home-blog__content {
    min-height: 155px;
    margin: 0;
    padding: 20px 35px 23px;
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    background-image: url("../images/home/blog/curve-cloud.png");
    background-position: bottom left;
    background-repeat: no-repeat;
}

.ait-home-blog__card-title {
    margin: 16px 0 0;
    overflow: hidden;
    color: #002559;
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    text-overflow: clip;
    white-space: nowrap;
}

.ait-home-blog__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ait-home-blog__card-title a:hover,
.ait-home-blog__card-title a:focus-visible {
    color: #ff3838;
}

.ait-home-blog__excerpt {
    margin: 14px 0 20px;
    color: #606060;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.ait-home-blog__dots {
    display: none;
}

@media (max-width: 1024px) {
    .ait-home-blog {
        padding: 70px 0 70px 15px;
    }

    .ait-home-blog__inner {
        padding-right: 15px;
    }

    .ait-home-blog__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ait-home-blog {
        margin: 0 0 -20px;
        padding: 64px 0 0;
    }

    .ait-home-blog__inner {
        width: 100%;
        padding: 10px 0 90px;
    }

    .ait-home-blog__heading {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ait-home-blog__title {
        font-size: 30px;
        line-height: 1.2;
    }

    .ait-home-blog__viewport {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .ait-home-blog__viewport::-webkit-scrollbar {
        display: none;
    }

    .ait-home-blog__track {
        display: flex;
        width: max-content;
    }

    .ait-home-blog__card {
        flex: 0 0 calc(100vw - 30px);
        width: calc(100vw - 30px);
        margin: 0 7.5px;
        scroll-snap-align: center;
    }

    .ait-home-blog__content {
        min-height: 175px;
        padding-right: 25px;
        padding-left: 25px;
    }

    .ait-home-blog__dots {
        position: absolute;
        bottom: 34px;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: auto;
        padding: 10px 20px;
        border-radius: 27px;
        background: rgba(247, 156, 83, 0.1);
        transform: translateX(-50%);
    }

    .ait-home-blog__dot {
        width: 30px;
        height: 7px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: #ff3838;
        cursor: pointer;
        opacity: 0.45;
        transition: width 0.3s ease, opacity 0.3s ease;
    }

    .ait-home-blog__dot:hover,
    .ait-home-blog__dot:focus-visible,
    .ait-home-blog__dot.is-active {
        width: 20px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ait-home-blog__viewport {
        scroll-behavior: auto;
    }

    .ait-home-blog__image,
    .ait-home-blog__card-title a,
    .ait-home-blog__dot {
        transition: none;
    }
}
