﻿.c-usefulllinks-content {
    width: 100%;
}

.c-usefulllinks-container {
    max-width: var(--normal);
    margin: 0 auto;
    display: flex;
    padding: 1em var(--padding-big-sides-desktop);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 1em;
}

.c-usefulllinks-box {
    padding: 0 1em;
    background-color: var(--light-grey);
    border: 1px solid #B6C6DB;
    border-radius: 5px;
    height: 8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-usefulllinks-title a {
    font-size: var( --font-text-desktop);
    color: var(--main-blue);
    text-decoration: underline;
    padding-bottom: 0.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em;
    line-height: 1.5em;
}

.c-usefulllinks-title a:visited,
.c-usefulllinks-title a.clicked {
    color: purple;
}

    .c-usefulllinks-title a:hover {
        color: var(--dark-blue);
    }

@media only screen and (max-width: 70em) {
    .c-usefulllinks-container {
        padding: 1em var(--padding-sides-tablet);
        grid-template-columns: repeat(2,1fr);
    }

    .c-usefulllinks-title a {
        font-size: var( --font-text-tablet);
    }
}

@media only screen and (max-width: 50em) {
    .c-usefulllinks-container {
        padding: 0.5em var(--padding-sides-mobile);
        grid-template-columns: repeat(1,1fr);
        grid-gap: 0.5em;
    }

    .c-usefulllinks-box {
        height: 5em;
    }

    .c-usefulllinks-title a {
        font-size: var( --font-text-mobile);
    }
}
