/*
|--------------------------------------------------------------------------
| SLT Modalities (Inclusive Communication)
|--------------------------------------------------------------------------
*/

.cew-slt-mod {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.cew-slt-mod-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.cew-slt-mod-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 64px;
}

.cew-slt-mod-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0 0 16px 0;
}

.cew-slt-mod-subheading {
    font-size: 18px;
    line-height: 30px;
    color: #404943;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.cew-slt-mod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.cew-slt-mod-card {
    --cew-accent: #2D6A4F;

    padding: 32px;

    background-color: #eeeeed;
    border-radius: 24px;
    border: 1px solid transparent;

    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cew-slt-mod-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    border-color: rgba(45, 106, 79, 0.20);
}

.cew-slt-mod-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    /* colour-mix gives every card a 10%-tint chip from its own accent */
    background-color: color-mix(in srgb, var(--cew-accent) 10%, transparent);
    color: var(--cew-accent);

    transition: background-color 0.3s ease, color 0.3s ease;
}

.cew-slt-mod-card:hover .cew-slt-mod-card-icon {
    background-color: var(--cew-accent);
    color: #ffffff;
}

.cew-slt-mod-card-icon .material-symbols-outlined {
    font-size: 30px;
    line-height: 1;
}

.cew-slt-mod-card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #0f5238;
    margin: 0 0 12px 0;
}

.cew-slt-mod-card-text {
    font-size: 16px;
    line-height: 26px;
    color: #404943;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .cew-slt-mod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .cew-slt-mod {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-slt-mod-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .cew-slt-mod-header {
        margin-bottom: 40px;
    }

    .cew-slt-mod-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-slt-mod-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}
