﻿.offices {
    margin-left: -15px;
    margin-right: -15px;
    justify-content: center;
}

.office-card {
    width: calc(25% - 30px);
    box-shadow: 0 0px 20px 0 rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.office-container {
    float: left;
    width: 33.333%;
    padding-left: 15px;
    padding-right: 15px;
}

.office {
    text-align: left;
    border: 1px solid #c8cfd7;
    margin-bottom: 40px;
}

    .office img {
        max-width: 160px;
        padding: 20px;
    }

.office-info {
    height: 230px;
}


.franchise-name {
    font-size: 22px;
    margin-bottom: 10px;
    display: none;
}

.office-name {
    font-size: 18px;
    font-weight: 300;
    padding: 5px 20px;
    padding-bottom: 10px;
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    /*border-bottom: 1px solid #005493;*/
}

.office-address {
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 22px;
    padding: 0 20px;
}


.office-link {
    position: relative;
    text-align: center;
    /*background: rgba(5, 188, 217, 0.5);*/
    background: rgba(74, 89, 100, 0.5);
    padding: 10px;
    margin-top: 35px;
}

.office a.more-details-btn {
    position: relative;
    display: inline-block;
    color: #fff;
    line-height: 16px;
    font-weight: 400;
    text-decoration: none;
    /* text-transform: uppercase; */
    /* background-color: #37424b; */
    padding: 10px 15px;
    /* border: 2px solid #efefef; */
    margin-top: 20px;
    transition: none;
    color: #37424b;
}

    .office a.more-details-btn:hover {
        /*background-color: #005493;*/
        color: #005493;
        text-decoration: none;
    }

.contact,
.contact a {
    color: #888;
}

.contact {
    font-size: 16px;
    line-height: 2;
    color: #555;
    padding: 0 20px;
}

    .contact a {
        padding-bottom: 1px;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
    }

        .contact a:hover {
            color: #555;
        }

    .contact i {
        display: inline-block;
        width: 20px;
        margin-right: 5px;
    }

        .contact i.fa-mobile {
            font-size: 1.4em;
        }


.card-image-overlay {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
}

h3.card-office {
    color: #fff;
    font-family: 'Garamond';
    font-weight: 600;
    display: inline-block;
    position: relative;
    text-decoration: underline;
    max-width: 80%;
    text-shadow: 0 0 10px black;
}


.office-card .card-image:before {
    padding-top: 100%;
}


.office-card .card-image-inner {
    transition: transform 2s ease-out, filter 2s ease-out;
    transform: scale(1);
    filter: brightness(100%);
}

.office-card:hover .card-image-inner {
    transform: scale(1.1);
    filter: brightness(50%);
}

@media screen and (max-width: 1024px) {
    .office-card {
        width: calc(50% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .office-card {
        width: calc(100% - 30px);
    }
}

@media only screen and (max-width: 1199px) {
    .office-container {
        width: 50%;
    }
}

@media only screen and (max-width: 767px) {
    .office-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .office-info {
        height: initial;
    }
}

@media only screen and (max-width: 400px) {
    .office a.more-details-btn {
        font-size: 13px;
        display: block;
    }
}

@media only screen and (max-width: 320px) {
    .office a.more-details-btn {
        font-size: 14px;
    }
}


/* BEGIN OFFICE SLIDER */
.offices.office-cards-slider-enabled a.office-slider-nav {
    position: absolute;
    top: 50%;
    padding: 15px;
    background: #8fc74a;
    z-index: 10;
    display: none;
    cursor: pointer;
}

a.office-slider-nav > * {
    pointer-events: none;
}



    .offices.office-cards-slider-enabled a.office-slider-nav.office-slider-nav-next {
        right: 0;
    }

    .offices.office-cards-slider-enabled a.office-slider-nav.office-slider-nav-prev {
        left: 0;
    }

@media screen and (max-width: 1024px) {
    .offices.office-cards-slider-enabled {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }

        .offices.office-cards-slider-enabled > a.card.office-card {
            flex-shrink: 0;
            width: 50%;
            margin: 0;
            padding: 15px;
        }

        .offices.office-cards-slider-enabled a.office-slider-nav {
            display: block;
            transform: translateY(-50%);
        }        
}

@media screen and (max-width: 768px) {
    .offices.office-cards-slider-enabled > a.card.office-card {
        width: 100%;        
    }
}
/* END OFFICE SLIDER */