﻿/* =========================================================
   KIRAA FEATURED PROJECTS TICKER
========================================================= */

.kiraa-featured-projects {
    position: relative;
    width: 100%;
    padding: 45px 0 40px;
    background: #f7f9fc;
    overflow: hidden;
    border-top: 1px solid #e8edf1;
    border-bottom: 1px solid #e8edf1;
}

.kfp-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.kfp-heading {
    text-align: center;
    margin-bottom: 28px;
}

.kfp-kicker {
    color: #35a7b1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.kfp-title {
    margin: 0;
    color: #1c2730;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.kfp-subtitle {
    margin-top: 8px;
    color: #778492;
    font-size: 14px;
}

.kfp-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.kfp-track {
    display: flex;
    align-items: center;
    width: max-content;
    direction: ltr;
    animation: kiraaProjectsTicker 32s linear infinite;
    will-change: transform;
}

.kfp-item {
    flex: 0 0 170px;
    width: 170px;
    height: 105px;
    margin: 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e9ed;
    border-radius: 15px;
    text-decoration: none !important;
    opacity: .9;
    box-shadow: 0 5px 18px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
}

    .kfp-item:hover {
        opacity: 1;
        transform: translateY(-5px);
        border-color: #35a7b1;
        box-shadow: 0 12px 30px rgba(0,0,0,.09);
    }

    .kfp-item img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 125px !important;
        max-height: 65px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }

.kfp-viewport::before,
.kfp-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 5;
    pointer-events: none;
}

.kfp-viewport::before {
    left: 0;
    background: linear-gradient( to right, #f7f9fc 0%, rgba(247,249,252,0) 100% );
}

.kfp-viewport::after {
    right: 0;
    background: linear-gradient( to left, #f7f9fc 0%, rgba(247,249,252,0) 100% );
}

.kiraa-featured-projects:hover .kfp-track {
    animation-play-state: paused;
}

@keyframes kiraaProjectsTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {

    .kiraa-featured-projects {
        padding: 30px 0 28px;
    }

    .kfp-container {
        padding: 0 15px;
    }

    .kfp-heading {
        margin-bottom: 20px;
    }

    .kfp-title {
        font-size: 23px;
    }

    .kfp-subtitle {
        font-size: 12px;
    }

    .kfp-item {
        flex-basis: 135px;
        width: 135px;
        height: 88px;
        margin: 0 6px;
        border-radius: 13px;
    }

        .kfp-item img {
            max-width: 95px !important;
            max-height: 50px !important;
        }

    .kfp-viewport::before,
    .kfp-viewport::after {
        width: 35px;
    }
}

/* One project only */
.kfp-track.kfp-single {
    width: 100%;
    justify-content: center;
    animation: none !important;
    transform: none !important;
}