/* ============================================================
   VENTACTIVE
   BLOG CATEGORIES
============================================================ */

.vcBlogCategories {
    position: relative;
    padding:
        clamp(76px, 8vw, 124px)
        clamp(18px, 4vw, 70px);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfbfd 100%
        );
}


.vcBlogCategoriesInner {
    width: min(1560px, 100%);
    margin: 0 auto;
}


/* ============================================================
   INTRO
============================================================ */

.vcBlogCategoriesIntro {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 30px;
}


.vcBlogCategoriesIntroCopy {
    max-width: 820px;
}


.vcBlogCategoriesIntro h2 {
    margin: 0;
    font-size:
        clamp(
            40px,
            4.5vw,
            68px
        );
    line-height: 1.01;
    letter-spacing: -.052em;
    font-weight: 500;
    color: #171b23;
}


.vcBlogCategoriesIntro h2 strong {
    display: block;
    font-weight: 800;
}


.vcBlogCategoriesIntro p {
    max-width: 680px;
    margin:
        18px
        0
        0;
    font-size: 16px;
    line-height: 1.7;
    color: #747c89;
}


/* ============================================================
   COUNTER
============================================================ */

.vcBlogCategoriesCounter {
    min-width: 155px;
    display: grid;
    gap: 4px;
    padding:
        16px
        18px;
    border:
        1px solid
        rgba(15, 23, 42, .07);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 15px 40px
        rgba(15, 23, 42, .05);
    text-align: right;
}


.vcBlogCategoriesCounter span {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3ae;
}


.vcBlogCategoriesCounter strong {
    font-size: 31px;
    line-height: 1;
    letter-spacing: -.05em;
    color: #171b23;
}


/* ============================================================
   GRID
============================================================ */

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


/* ============================================================
   CARD
============================================================ */

.vcBlogCategoryCard {
    position: relative;
    min-width: 0;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:
        22px;
    overflow: hidden;
    border:
        1px solid
        rgba(15, 23, 42, .065);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfbfd
        );
    color: inherit;
    text-decoration: none;
    box-shadow:
        0 16px 44px
        rgba(15, 23, 42, .045);
    transition:
        transform .28s cubic-bezier(.2,.8,.2,1),
        border-color .28s ease,
        box-shadow .28s ease,
        background-color .28s ease;
}


.vcBlogCategoryCard::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(99, 116, 255, .11),
            transparent 70%
        );
    opacity: 0;
    transition:
        opacity .28s ease,
        transform .35s ease;
}


.vcBlogCategoryCard::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            #6374ff,
            #8b99ff,
            #ff6f8d
        );
    transform:
        scaleX(0);
    transform-origin:
        left center;
    transition:
        transform .35s cubic-bezier(.2,.8,.2,1);
}


.vcBlogCategoryCard:hover {
    transform:
        translateY(-5px);
    border-color:
        rgba(99, 116, 255, .15);
    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, .08);
}


.vcBlogCategoryCard:hover::before {
    opacity: 1;
    transform:
        scale(1.12);
}


.vcBlogCategoryCard:hover::after {
    transform:
        scaleX(1);
}


/* ============================================================
   CARD TOP
============================================================ */

.vcBlogCategoryCardTop {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}


.vcBlogCategoryNumber {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    color: #a3a9b2;
}


/* ============================================================
   ICON
============================================================ */

.vcBlogCategoryIcon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background:
        rgba(99, 116, 255, .08);
    color: #6374ff;
    transition:
        transform .28s ease,
        background-color .28s ease,
        color .28s ease;
}


.vcBlogCategoryIcon svg {
    width: 20px;
    height: 20px;
}


.vcBlogCategoryCard:hover
.vcBlogCategoryIcon {
    transform:
        translateY(-2px)
        rotate(-3deg);
    background: #6374ff;
    color: #ffffff;
}


/* ============================================================
   CONTENT
============================================================ */

.vcBlogCategoryContent {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin-top: 32px;
}


.vcBlogCategoryContent > strong {
    font-size:
        clamp(
            21px,
            1.8vw,
            27px
        );
    line-height: 1.05;
    letter-spacing: -.035em;
    color: #181c24;
}


.vcBlogCategoryContent > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: 12px;
    line-height: 1.6;
    color: #79818d;
}


/* ============================================================
   FOOT
============================================================ */

.vcBlogCategoryFooter {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 17px;
    border-top:
        1px solid
        rgba(15, 23, 42, .055);
}


.vcBlogCategoryFooter > span:first-child {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #949ba6;
}


/* ============================================================
   ARROW
============================================================ */

.vcBlogCategoryArrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        rgba(15, 23, 42, .045);
    color: #626a75;
    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease;
}


.vcBlogCategoryArrow svg {
    width: 14px;
    height: 14px;
}


.vcBlogCategoryCard:hover
.vcBlogCategoryArrow {
    transform:
        translateX(3px);
    background: #171b23;
    color: #ffffff;
}


/* ============================================================
   INDIVIDUAL ACCENTS
============================================================ */

.vcBlogCategoryCard:nth-child(2)
.vcBlogCategoryIcon {
    background:
        rgba(50, 179, 116, .08);
    color: #24a56b;
}


.vcBlogCategoryCard:nth-child(2):hover
.vcBlogCategoryIcon {
    background: #24a56b;
    color: #ffffff;
}


.vcBlogCategoryCard:nth-child(3)
.vcBlogCategoryIcon {
    background:
        rgba(255, 153, 72, .10);
    color: #e88636;
}


.vcBlogCategoryCard:nth-child(3):hover
.vcBlogCategoryIcon {
    background: #e88636;
    color: #ffffff;
}


.vcBlogCategoryCard:nth-child(4)
.vcBlogCategoryIcon {
    background:
        rgba(255, 90, 126, .09);
    color: #f14f74;
}


.vcBlogCategoryCard:nth-child(4):hover
.vcBlogCategoryIcon {
    background: #f14f74;
    color: #ffffff;
}


.vcBlogCategoryCard:nth-child(5)
.vcBlogCategoryIcon {
    background:
        rgba(149, 99, 255, .08);
    color: #855ce3;
}


.vcBlogCategoryCard:nth-child(5):hover
.vcBlogCategoryIcon {
    background: #855ce3;
    color: #ffffff;
}


/* ============================================================
   LAPTOP
============================================================ */

@media (max-width: 1250px) {

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

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 850px) {

    .vcBlogCategoriesIntro {
        grid-template-columns:
            1fr;
        align-items: start;
    }


    .vcBlogCategoriesCounter {
        width: max-content;
        text-align: left;
    }


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

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 620px) {

    .vcBlogCategories {
        padding:
            64px
            16px;
    }


    .vcBlogCategoriesIntro {
        gap: 18px;
        margin-bottom: 24px;
    }


    .vcBlogCategoriesIntro h2 {
        font-size:
            clamp(
                38px,
                11vw,
                50px
            );
    }


    .vcBlogCategoriesIntro p {
        font-size: 14px;
        line-height: 1.62;
    }


    .vcBlogCategoriesCounter {
        width: 100%;
    }


    .vcBlogCategoriesGrid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type:
            x mandatory;
        scrollbar-width: none;
    }


    .vcBlogCategoriesGrid::-webkit-scrollbar {
        display: none;
    }


    .vcBlogCategoryCard {
        flex:
            0 0
            min(
                290px,
                82vw
            );
        min-height: 230px;
        padding:
            20px;
        border-radius: 23px;
        scroll-snap-align: start;
    }


    .vcBlogCategoryContent {
        margin-top: 26px;
    }


    .vcBlogCategoryContent > strong {
        font-size: 22px;
    }


    .vcBlogCategoryContent > span {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 430px) {

    .vcBlogCategoryCard {
        flex-basis: 84vw;
    }


    .vcBlogCategoryIcon {
        width: 39px;
        height: 39px;
        border-radius: 13px;
    }


    .vcBlogCategoryFooter {
        margin-top: 23px;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .vcBlogCategoryCard,
    .vcBlogCategoryCard::before,
    .vcBlogCategoryCard::after,
    .vcBlogCategoryIcon,
    .vcBlogCategoryArrow {
        transition: none;
    }

}

.vcBlogCategoryCard.is-active {
    border-color:
        rgba(99, 116, 255, .28);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f7ff
        );

    box-shadow:
        0 24px 60px
        rgba(99, 116, 255, .10);
}


.vcBlogCategoryCard.is-active
.vcBlogCategoryArrow {
    background: #6374ff;
    color: #ffffff;
}
