﻿
.home-ct {
    background-color: #F7F7F7;
}

    .home-ct .grid.wide {
        max-width: 1226px;
    }

.home-ct-container {
    padding-top: 94px;
    padding-bottom: 62px;
}

    .home-ct-container .p-title {
        color: var(--default-color-1);
    }

    .home-ct-container .p-descript {
        color: #767676;
        max-width: 696px;
        margin: 0 auto;
        font-size: 16px;
        margin-top: 19px;
    }

.home-ct-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 8px;
    row-gap: 12px;
    margin-top: 56px;
}

.home-ct-item:hover .home-ct-content h3 {
    transform: translateY(0);
    opacity: 1;
}

.home-ct-item:hover .home-ct-content span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: .1s;
}

.home-ct-item:hover::before {
    opacity: 1;
}

.home-ct-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(254, 255, 253, 0.00) 11.36%, #3C6B17 100%);
    opacity: 0;
    transition: all .3s;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.home-ct-item:nth-child(2):hover::after {
    transform: translate(0, -10px)
}

.home-ct-item:nth-child(3):hover::after {
    transform: translate(-10px, 10px)
}

.home-ct-item:nth-child(4):hover::after {
    transform: translate(0, 10px)
}

.home-ct-item:nth-child(5):hover::after {
    transform: translate(10px, -10px)
}

.home-ct-item:hover::after {
    transform: translate(-10px, -10px);
    opacity: 1;
}

.home-ct-item {
    height: 243px;
    position: relative;
    border-radius: 10px;
    border-radius: 10px;
}

    .home-ct-item::after {
        content: '';
        position: absolute;
        border-radius: 10px;
        border: 1px solid #3C6B17;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1;
        transition: 0.8s cubic-bezier(.3,2.2,.3,1);
        opacity: 0;
    }

    .home-ct-item:nth-child(5) {
        /* here you make it 3 */
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
        height: 498px;
    }

.home-ct-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

    .home-ct-img img {
    }

.home-ct-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 0 15px;
    padding-bottom: 7px;
}

.home-ct-item:nth-child(5) .home-ct-content h3 {
    font-size: 32px;
}

.home-ct-item:nth-child(5) .home-ct-content span {
    font-size: 20px;
}

.home-ct-item:nth-child(5) .home-ct-content {
    padding-bottom: 20px;
}

.home-ct-content h3 {
    margin: 0;
    text-align: center;
    color: #EFEFEF;
    font-weight: 100;
    font-family: 'RobotoM';
    font-size: 18px;
    line-height: 159.5%;
    transform: translateY(10px);
    opacity: 0;
    transition: 0.6s cubic-bezier(.3,2.2,.3,1);
}

.home-ct-content span {
    display: flex;
    align-items: center;
    color: #EFEFEF;
    justify-content: center;
    font-size: 16px;
    line-height: 159.5%;
    margin-top: -1px;
    transform: translateY(10px);
    opacity: 0;
    transition: 0.6s cubic-bezier(.3,2.2,.3,1);
}

    .home-ct-content span img {
        margin-right: 10px;
    }

.home-ct-btn:hover {
    background-color: var(--default-color-1);
    color: #fff;
}

.home-ct-btn {
    width: fit-content;
    margin: 0 auto;
    font-size: 24px;
    color: var(--default-color-1);
    border-radius: 8px;
    border: 2px solid var(--default-color-1);
    padding: 12px 43px;
    padding-top: 9px;
    margin-top: 49px;
    transition: all .3s;
}
/*RS*/
@media(max-width:1023px) {

    .home-ct-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .home-ct-item:nth-child(5) {
        display: none;
    }

    .home-ct-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 8px;
        margin-top: 30px;
    }

    .home-ct-btn {
        margin-top: 28px;
    }

    .home-ct-item::after {
        display: none;
    }
}

@media(min-width:740px) and (max-width:1023px) {
}

@media(max-width: 739px) {

    .home-ct-item {
        height: 184px;
        position: relative;
        border-radius: 0px 0px 10px 10px;
        overflow: hidden;
        border-radius: 10px;
        overflow: hidden;
    }

    .home-ct-btn {
        font-size: 15px;
        padding: 8px 20px;
        margin-top: 20px;
    }

    .home-ct-container .p-descript {
        font-size: 15px;
        margin-top: 8px;
    }

    .home-ct-list {
        margin-top: 20px;
    }

    .home-ct-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .home-ct-content h3 {
        font-size: 15px;
    }

    .home-ct-content span {
        font-size: 11px;
    }
}
