/**
 * Related Practice Areas (Related Services) - Practice Areas Child template only.
 * Styles are independent from .related-posts in blog.css.
 */

.related-practice-areas {
    padding: 40px 0;
    background-color: #FFFFFF;
    margin: 30px 0;
}

.related-practice-areas__title {
    color: #323232;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 24px;
}

.related-practice-areas__title:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #BABABA;
    position: absolute;
    bottom: 0;
    left: 0;
}

.related-practice-areas > .container > .row:last-of-type {
    margin-left: 0;
    margin-right: 0;
}

.related-practice-areas__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.related-practice-areas__col {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    float: none;
    min-width: 0;
}

.related-practice-areas__card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #f0f0f0;
}

.related-practice-areas__card:hover {
    transform: translateY(-3px);
}

.related-practice-areas__card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.related-practice-areas__card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-practice-areas__card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.related-practice-areas__card h4 a {
    color: #323232;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-practice-areas__card h4 a:hover {
    color: #000000;
}

.related-practice-areas__link {
    color: #757575;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-self: flex-start;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.related-practice-areas__link:after {
    content: "";
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='8' viewBox='0 0 22 8' fill='none'%3E%3Cpath d='M0.365799 4.45901L19.8757 4.45901L16.9848 7.34986L17.6345 7.99951L21.6344 3.99967L17.6345 -0.000242583L16.9848 0.649442L19.8757 3.54026L0.365799 3.54025L0.365799 4.45901Z' fill='%235F5F5F'/%3E%3C/svg%3E");
    width: 22px;
    height: 8px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.related-practice-areas__link:hover {
    color: #333;
}

.related-practice-areas__link:hover:after {
    transform: translateX(3px);
}

.related-practice-areas__cta {
    margin-top: 50px;
}

.related-practice-areas__cta .fasc-button {
    color: #242424;
    text-transform: uppercase;
    border-radius: 34px !important;
    background: #D6B161;
    text-align: center;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 10px 25px;
}

@media (max-width: 991px) and (min-width: 768px) {
    .related-practice-areas {
        padding: 35px 0;
    }

    .related-practice-areas__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .related-practice-areas__card img {
        height: 160px;
    }

    .related-practice-areas__card-body {
        padding: 16px;
    }

    .related-practice-areas__card h4,
    .related-practice-areas__card h4 a {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .related-practice-areas__link {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .related-practice-areas__title {
        font-size: 20px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .related-practice-areas__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-practice-areas__card img {
        height: 200px;
    }

    .related-practice-areas__cta {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .related-practice-areas {
        padding: 30px 0;
        margin: 20px 0;
    }

    .related-practice-areas > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .related-practice-areas__card-body {
        padding: 15px;
    }

    .related-practice-areas__card h4,
    .related-practice-areas__card h4 a {
        font-size: 16px;
    }

    .related-practice-areas__link {
        font-size: 16px;
    }
}
