/* Blog and work cards on the home and listing pages. */
#blog .profile-card-grid,
#ourWork .profile-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    align-items: stretch;
}

#blog .profile-card-grid > .profile-content-card,
#ourWork .profile-card-grid > .profile-content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce9f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(12, 39, 75, .09);
    text-align: start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#blog .profile-card-grid > .profile-content-card:hover,
#ourWork .profile-card-grid > .profile-content-card:hover {
    transform: translateY(-6px);
    border-color: #8dd6ef;
    box-shadow: 0 20px 40px rgba(12, 39, 75, .16);
}

#blog .profile-content-card > img,
#ourWork .profile-content-card > img {
    display: block;
    width: 100%;
    height: clamp(185px, 19vw, 235px);
    max-height: 235px;
    object-fit: cover;
    object-position: center;
    padding: 0;
    border-radius: 0;
    background: #eaf4fa;
}

#blog .profile-content-card-body,
#ourWork .profile-content-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2vw, 26px);
    border-top: 3px solid #48c1e9;
}

#blog .profile-content-card h3,
#ourWork .profile-content-card h3 {
    margin: 0 0 12px;
    color: #17365e;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#blog .profile-content-card p,
#ourWork .profile-content-card p {
    margin: 0;
    color: #526b84;
    font-size: .98rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    #blog .profile-card-grid > .profile-content-card,
    #ourWork .profile-card-grid > .profile-content-card {
        transition: none;
    }

    #blog .profile-card-grid > .profile-content-card:hover,
    #ourWork .profile-card-grid > .profile-content-card:hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    #blog .profile-card-grid,
    #ourWork .profile-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    #blog .profile-card-grid,
    #ourWork .profile-card-grid {
        grid-template-columns: minmax(0, 1fr);
        width: min(460px, calc(100% - 32px));
        gap: 16px;
    }

    #blog .profile-content-card > img,
    #ourWork .profile-content-card > img {
        height: clamp(180px, 48vw, 230px);
        max-height: 230px;
    }
}
