﻿
.clearfloat {
    content: '';
    display: block;
    clear: both;
}

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

    .cards li {
        display: inline-block;
        margin: 10px;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        font-size: 1.1em;
        transition: all 0.2s ease-in-out;
        text-align: center;
        border-left: 4px solid #e5bf24;
    }

        .cards li:after,
        .cards li:before {
            content: '';
            display: block;
            clear: both;
        }

        .cards li img {
            display: inline-block;
            width: 100%;
            height: auto;
            max-width: 150px;
            float: left;
            border-radius: 50%;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
            transition: all 0.5s ease-in-out;
        }

        .cards li .details {
            float: left;
            text-align: left;
            transition: all 0.5s ease-in-out;
            text-shadow: 1px 1px rgba(0, 0, 0, 0);
            min-width: 300px;
            inline-size:min-content;
        }

            .cards li .details > span,
            .cards li .details > a {
                display: block;
                padding: 0 5px 0 15px;
                margin-bottom: 0px;
                text-decoration: none;
                position: relative;
            }

                .cards li .details > span:before,
                .cards li .details > a:before {
                    display: inline-block;
                    font: normal normal normal 16px/1 FontAwesome;
                    text-rendering: auto;
                    -webkit-font-smoothing: antialiased;
                    -moz-osx-font-smoothing: grayscale;
                    margin-right: 15px;
                    width: 15px;
                    text-align: center;
                    color: #444;
                }

            .cards li .details a {
                color: #57893c;
                transition: color 0.5s ease-in-out;
            }

                .cards li .details a:hover,
                .cards li .details a:focus {
                    color: #97c77e;
                    transition: color 0.5s ease-in-out;
                }

            .cards li .details .name {
                font-weight: 800;
                font-size: 1.2em;
            }

                .cards li .details .name:before {
                    /*content: "\f2c0";*/
                }

            .cards li .details .title:before {
               /* content: "\f2c1";*/
            }

            .cards li .details .phone:before {
                content: "\f095";
            }

            .cards li .details .email:before {
                content: "\f003";
            }

        .cards li:hover {
            background: rgba(235, 237, 189, 0.5);
            transition: all 0.2s ease-in-out;
            transform: scale(1.03);
        }

            .cards li:hover img {
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
                transition: all 0.4s ease-in-out;
            }

            .cards li:hover .details {
                transition: all 0.5s ease-in-out;
                text-shadow: 1px 1px #dfe295;
            }

@media (max-width: 550px) {
    .cards li {
        display: block;
        width: auto;
        max-width: 200px;
        margin: 30px auto;
    }

        .cards li img,
        .cards li .details {
            float: none;
        }

        .cards li img {
            margin: 0 auto;
        }

        .cards li .details {
            margin-top: 20px;
            text-align: center;
            min-width: 0;
        }

            .cards li .details span,
            .cards li .details a {
                padding: 0;
                white-space: break-all;
                word-wrap: break-word;
            }

                .cards li .details span:before,
                .cards li .details a:before {
                    display: none;
                }
}


.card-details {
    float: left;
    text-align: left;
    transition: all 0.5s ease-in-out;
    text-shadow: 1px 1px rgba(0, 0, 0, 0);
    min-width: 300px;
    inline-size: min-content;
}

    .card-details > span,
    .card-details > a {
        display: block;
        padding: 0 5px 0 15px;
        margin-bottom: 0px;
        text-decoration: none;
        position: relative;
    }

        .card-details > span:before,
        .card-details > a:before {
            display: inline-block;
            font: normal normal normal 16px/1 FontAwesome;
            text-rendering: auto;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            margin-right: 15px;
            width: 15px;
            text-align: center;
            color: #444;
        }

    .card-details a {
        color: #57893c;
        transition: color 0.5s ease-in-out;
    }

        .card-details a:hover,
        .card-details a:focus {
            color: #97c77e;
            transition: color 0.5s ease-in-out;
        }

    .card-details .name {
        font-weight: 800;
        font-size: 1.2em;
    }

    .card-details .phone:before {
        content: "\f095";
    }

    .card-details .email:before {
        content: "\f003";
    }


.profile-card-2 {
    border: 1px solid #007b5e !important;
}

    .profile-card-2 .card-img-block {
        float: left;
        width: 100%;
        height: 150px;
        overflow: hidden;
        border: 1px solid #e5bf24 !important;
    }

    .profile-card-2 .card-body {
        position: relative;
    }

    .profile-card-2 .profile {
        border-radius: 50%;
        position: absolute;
        top: -42px;
        left: 15%;
        max-width: 75px;
        border: 3px solid rgba(255, 255, 255, 1);
        -webkit-transform: translate(-50%, 0%);
        transform: translate(-50%, 0%);
    }

    .profile-card-2 h5 {
        font-weight: 600;
        color: #007bff;
    }

    .profile-card-2 .card-text {
        font-weight: 300;
        font-size: 15px;
    }

    .profile-card-2 .icon-block {
        float: left;
        width: 100%;
    }

        .profile-card-2 .icon-block a {
            text-decoration: none;
        }

    .profile-card-2 i {
        display: inline-block;
        font-size: 16px;
        color: #007bff;
        text-align: center;
        border: 1px solid #007bff;
        width: 30px;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        margin: 0 5px;
    }

        .profile-card-2 i:hover {
            background-color: #007bff;
            color: #fff;
        }