/***************************************
 * Insights Grid
 ***************************************/

.aws-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    width: 100%;
}


/***************************************
 * Card
 ***************************************/

.aws-insight-card {
    min-width: 0;
    height: 100%;

    background: #F9FBFE;

    border: 10px solid #E2E2E2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0px 12px 30px 0px #0000001A;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/***************************************
 * Link
 ***************************************/

.aws-insight-card__link {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    padding: 2.4rem;

    color: inherit;
    text-decoration: none;
}


/***************************************
 * Image
 ***************************************/

.aws-insight-card__image-wrap {
    position: relative;

    width: 100%;
    aspect-ratio: 1.385 / 1;
    border-radius: 30px;

    overflow: hidden;

    background: #e5e5e5;
}

.aws-insight-card__image {
    display: block;

    width: 100%;
    height: 100%!important;

    object-fit: cover;

    transition: transform 0.45s ease;
}


/***************************************
 * Content
 ***************************************/

.aws-insight-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px 20px 16px 20px;
}


/***************************************
 * Category
 ***************************************/

.aws-insight-card__category {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #323D48;
}

.aws-insight-card__dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #00AEEF;
}


/***************************************
 * Title
 ***************************************/

body .aws-insight-card__title {
    margin: 0 0 0 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #323D48;
    letter-spacing: 0;
}


/***************************************
 * Date
 ***************************************/

.aws-insight-card__date {
    margin-top: auto;
    padding-top: 12px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #323D48;
    letter-spacing: 0;
}


/*
 * Divider before date
 */
.aws-insight-card__date::before {
    content: "";

    display: block;

    width: 100%;
    height: 1px;

    margin-bottom: 12px;

    background: #E2E2E2;
}


/***************************************
 * Hover
 ***************************************/

@media (hover: hover) {

    .aws-insight-card:hover {
        transform: translateY(-5px);

        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.06),
            0 25px 45px rgba(0, 0, 0, 0.08);
    }

    .aws-insight-card:hover
    .aws-insight-card__image {
        transform: scale(1.025);
    }
}


@media (max-width: 1299px) {
    body .aws-insight-card__title{
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 1024px) {

    .aws-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .aws-insight-card {
        border-width: 7px;
        border-radius: 26px;
    }

    .aws-insight-card__link {
        padding: 18px;
    }

    .aws-insight-card__image-wrap {
        border-radius: 20px;
    }

    .aws-insight-card__content {
        padding: 24px 12px 14px;
    }

    .aws-insight-card__category {
        margin-bottom: 12px;
    }

    .aws-insight-card__title {
        font-size: 23px;
    }

    .aws-insight-card__date {
        padding-top: 12px;
        line-height: 20px;
        font-size: 14px;
    }

    .aws-insight-card__date::before {
        margin-bottom: 12px;
    }


    
}


/***************************************
 * Mobile
 ***************************************/

@media (max-width: 767px) {

    .aws-insights-grid {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }

    .aws-insight-card{
        border-width: 10px;
        border-radius: 24px;
    }
    .aws-insight-card__link{
        padding: 16px;
    }
    .aws-insight-card__image-wrap{
        aspect-ratio: 1.785 / 2;
        border-radius: 16px;
    }
    .aws-insight-card__content{
        padding: 30px 12px 8px 12px;
    }
    body .aws-insight-card__title{
        font-size: 24px;
        min-height: 90px;
        line-height: 30px;
    }

    /* .aws-insight-card {
        border-width: 6px;
        border-radius: 22px;
    }

    .aws-insight-card__link {
        padding: 14px;
    }

    .aws-insight-card__image-wrap {
        aspect-ratio: 1.5 / 1;
        border-radius: 18px;
    }

    .aws-insight-card__content {
        padding: 20px 10px 12px;
    }

    .aws-insight-card__category {
        gap: 9px;

        margin-bottom: 14px;

        font-size: 14px;
    }

    .aws-insight-card__dot {
        width: 11px;
        height: 11px;

        border-radius: 3px;
    }

    .aws-insight-card__title {
        font-size: 22px;
        line-height: 1.25;
    }

    .aws-insight-card__date {
        padding-top: 18px;

        font-size: 15px;
    }

    .aws-insight-card__date::before {
        margin-bottom: 15px;
    } */
}
