﻿/* ---------------------------------------------------------
   Why Elimys
   Compact homepage sibling of the Add Institution benefits

   Primary:        #21374C
   Accent:         #E9A23B
   Course Blue:    #4B88DB
   Intake Green:   #35BE6B
   --------------------------------------------------------- */

.why-elimys {
    width: 100%;
    margin: 2.5rem 0 2.25rem;
    padding: 2.75rem 1.5rem 1.8rem;
    background-color: #f7f9fb;
    border: 1px solid #e1e8ef;
    border-radius: 16px;
    box-sizing: border-box;
}

.why-elimys__header {
    max-width: 820px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.why-elimys__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: .9rem;
    padding: .42rem 1rem;
    color: #ffffff;
    background-color: #21374C;
    border-radius: 50rem;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .065em;
    text-transform: uppercase;
}

    .why-elimys__eyebrow::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: .5rem;
        background-color: #E9A23B;
        border-radius: 50%;
    }

.why-elimys__title {
    margin-bottom: .75rem;
    color: #172e43;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
}

.why-elimys__subtitle {
    margin-bottom: 0;
    color: #526475;
    font-size: 1.04rem;
    line-height: 1.7;
}

.why-elimys__grid {
    margin-bottom: -.75rem;
}

.why-elimys-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 236px;
    padding: 1.8rem 1.4rem 1.55rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e1e7ed;
    border-top: 3px solid #21374C;
    border-radius: 13px;
    box-shadow: 0 .15rem .35rem rgba(33, 55, 76, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-top-color .18s ease;
}

    .why-elimys-card:hover {
        transform: translateY(-4px);
        border-top-color: #E9A23B;
        box-shadow: 0 .65rem 1.35rem rgba(33, 55, 76, .1);
    }

.why-elimys-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-bottom: 1.1rem;
    font-size: 2.65rem;
    line-height: 1;
    transition: transform .18s ease, opacity .18s ease;
}

/* Individual icon colours */
.why-elimys-card--institutions .why-elimys-card__icon {
    color: #21374C;
}

.why-elimys-card--courses .why-elimys-card__icon {
    color: #4B88DB;
}

.why-elimys-card--intakes .why-elimys-card__icon {
    color: #35BE6B;
}

.why-elimys-card--applications .why-elimys-card__icon {
    color: #E9A23B;
}

.why-elimys-card:hover .why-elimys-card__icon {
    transform: translateY(-2px) scale(1.04);
    opacity: .92;
}

.why-elimys-card__title {
    margin-bottom: .65rem;
    color: #172e43;
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.4;
}

.why-elimys-card__text {
    margin-bottom: 0;
    color: #536474;
    font-size: .98rem;
    line-height: 1.68;
}

@media (max-width: 1199.98px) {
    .why-elimys-card {
        min-height: 250px;
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }
}

@media (max-width: 991.98px) {
    .why-elimys {
        padding: 2.35rem 1.25rem 1.45rem;
    }

    .why-elimys__header {
        margin-bottom: 1.8rem;
    }

    .why-elimys__title {
        font-size: 1.72rem;
    }

    .why-elimys-card {
        min-height: 230px;
    }
}

@media (max-width: 767.98px) {
    .why-elimys {
        margin-top: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 1.9rem 1rem 1rem;
        border-radius: 12px;
    }

    .why-elimys__header {
        margin-bottom: 1.55rem;
    }

    .why-elimys__eyebrow {
        font-size: .74rem;
    }

    .why-elimys__title {
        font-size: 1.48rem;
    }

    .why-elimys__subtitle {
        font-size: .96rem;
        line-height: 1.65;
    }

    .why-elimys-card {
        min-height: auto;
        padding: 1.5rem 1.15rem 1.35rem;
    }

    .why-elimys-card__icon {
        min-height: 48px;
        margin-bottom: .9rem;
        font-size: 2.2rem;
    }

    .why-elimys-card__title {
        font-size: 1.08rem;
    }

    .why-elimys-card__text {
        font-size: .95rem;
    }
}
