.cert-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    text-align: center;
    border: 1px solid white;
    border-radius: 12px;
    background-color: white;
    width: 255px;
    height: 255px;
}

    .cert-box img {
        transition: transform 0.3s ease;
        align-self: center;
        margin: 0 auto;
    }

/*.cert-box:hover img {
                transform: scale(1.1);
            }*/

.overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #f1f1f1;
    width: 100%;
    transition: 0.5s ease;
    opacity: 0;
    text-align: center;
    height: 100%;
    padding: 41px 32px;
    font-family: "Sarabun", sans-serif;
}

    .overlay a {
        float: left;
        margin-top: 1.5rem;
        text-decoration: none;
        font-size: 12px;
        color: white;
    }

        .overlay a:hover {
            cursor: pointer;
            color: #949595 !important;
        }

        .overlay a:after {
            content: '>';
            padding-left: 5px;
        }

.cert-box:hover .overlay {
    opacity: 1;
}





.cert-item {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-gap: 30px;
}


.idc-slider-cert-btn {
    z-index: 6;
    color: red;
    position: absolute;
    width: 36px;
    height: 36px;
    top: 279px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 50%;
}

    .idc-slider-cert-btn:hover {
        background: #ee0033;
    }

.idc-prev-cert-btn {
    left: calc(-42px - 1rem);
}

    .idc-prev-cert-btn:before {
        content: "";
        border-top: 2px solid #ee0033;
        border-left: 2px solid #ee0033;
        width: 10px;
        height: 10px;
        display: block;
        transform: translate(3px, 0px) rotate(-45deg);
    }

    .idc-prev-cert-btn:hover:before,
    .idc-next-cert-btn:hover:before {
        border-color: white;
    }

.idc-next-cert-btn {
    right: calc(-42px - 1rem);
}

    .idc-next-cert-btn:before {
        content: "";
        border-top: 2px solid #ee0033;
        border-right: 2px solid #ee0033;
        width: 10px;
        height: 10px;
        display: block;
        transform: translate(-3px, 0px) rotate(45deg);
    }

@@media (min-width: 768px) and (max-width: 1200px) {
    .cert-box {
        width: 164px;
        height: 164px;
    }

    .img-fluid .cert {
        width: 145px;
        height: 145px;
    }

    .cert-box img {
        transition: transform 0.3s ease;
        align-self: center;
        margin: 0 auto;
    }

    .section-why div.slick-track {
        display: flex;
        grid-gap: 7px
    }

    .cert-item {
        display: flex;
        grid-gap: 16px;
    }

    .mobile-cert {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .idc-slider-cert-btn {
        width: 30px;
        height: 30px;
        top: 50%
    }

        .idc-slider-cert-btn:before {
            width: 10px;
            height: 10px;
        }

    .idc-next-cert-btn {
        right: calc(-8px - 1rem);
    }

    .idc-prev-cert-btn {
        left: calc(-8px - 1rem);
    }

    .overlay {
        display: none;
    }
}

@@media (max-width: 767px) {
    .cert-box {
        width: 185px;
        height: 185px;
    }

        .cert-box img {
            transition: transform 0.3s ease;
            align-self: center;
            margin: 0 auto;
            /*                width: 100px;
    */
        }

    .idc-slider-cert-btn {
        width: 30px;
        height: 30px;
        top: 102%;
        display: none !important;
    }

        .idc-slider-cert-btn:before {
            width: 10px;
            height: 10px;
            display: none
        }

    .idc-next-cert-btn {
        right: calc(180px - 1rem);
    }

    .idc-prev-cert-btn {
        left: calc(180px - 1rem);
    }

    .overlay {
        display: none;
    }
}

.cert-text {
    text-align: justify;
    text-justify: inter-word;
}

.cert-item {
    display: flex;
    grid-gap: 16px;
}

.section-why div.slick-track {
    display: flex;
    grid-gap: 14px
}

.section-why {
    background-repeat: no-repeat;
    color: #252525;
    background-size: cover;
}
