/* ==========================================================================
   Solutions landing page
   --------------------------------------------------------------------------
   Card grid only. The hero, section heading and closing CTA come from
   inner-pages.css; colour tokens from the :root block in mega-menu.css.
   ========================================================================== */

.sd-sol {
    padding: 58px 0 50px;
    background: #fff;
}

.sd-sol__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.sd-sol__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(16, 38, 73, .06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-sol__card:hover {
    border-color: rgba(232, 106, 56, .4);
    box-shadow: 0 18px 40px rgba(16, 38, 73, .12);
    transform: translateY(-4px);
}

/* ---- media ---- */

.sd-sol__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sd-tint);
    line-height: 0;
}

.sd-sol__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sd-sol__card:hover .sd-sol__media img {
    transform: scale(1.05);
}

/* The badge ties the card back to the same icon the nav dropdown uses. */
.sd-sol__badge {
    position: absolute;
    left: 18px;
    bottom: -22px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--sd-orange);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(232, 106, 56, .35);
}

/* ---- body ---- */

.sd-sol__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 34px 24px 26px;
}

.sd-sol__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.sd-sol__title a {
    color: var(--sd-navy);
    text-decoration: none;
    transition: color .2s ease;
}

.sd-sol__card:hover .sd-sol__title a {
    color: var(--sd-orange-ink);
}

.sd-sol__tag {
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--sd-blue);
}

.sd-sol__desc {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-sol__points {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    border-top: 1px dashed var(--sd-line);
    padding-top: 16px;
}

.sd-sol__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sd-navy);
    font-weight: 500;
}

.sd-sol__points li i {
    flex: 0 0 14px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--sd-orange);
}

/* Pushed to the bottom so the CTA lines up across cards of differing height. */
.sd-sol__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    align-self: flex-start;
    padding: 11px 24px;
    border: 1px solid var(--sd-blue);
    border-radius: 50px;
    color: var(--sd-blue);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.sd-sol__more i {
    font-size: 13px;
    transition: transform .25s ease;
}

.sd-sol__more:hover {
    background: var(--sd-blue);
    border-color: var(--sd-blue);
    color: #fff;
}

.sd-sol__more:hover i {
    transform: translateX(3px);
}

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

@media (max-width: 991.98px) {
    .sd-sol {
        padding: 44px 0 38px;
    }

    .sd-sol__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767.98px) {
    .sd-sol {
        padding: 34px 0 30px;
    }

    .sd-sol__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .sd-sol__body {
        padding: 32px 20px 24px;
    }

    .sd-sol__title {
        font-size: 18.5px;
    }

    .sd-sol__more {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sd-sol__card,
    .sd-sol__media img,
    .sd-sol__more,
    .sd-sol__more i {
        transition: none !important;
    }

    .sd-sol__card:hover {
        transform: none;
    }

    .sd-sol__card:hover .sd-sol__media img {
        transform: none;
    }
}
