/*
|--------------------------------------------------------------------------
| LearnerBox Related Content
|--------------------------------------------------------------------------
| Designed to blend with the Ashe WordPress theme.
|--------------------------------------------------------------------------
*/

.lb-related-content {
    clear: both;
    width: 100%;
    margin: 48px 0 28px;
    padding-top: 34px;
    border-top: 1px solid #e6e1da;
    color: #333333;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.lb-related-section {
    margin: 0 0 48px;
}

.lb-related-section:last-child {
    margin-bottom: 18px;
}

.lb-related-heading-wrap {
    margin: 0 0 24px;
    text-align: left;
}

.lb-related-eyebrow {
    margin: 0 0 7px;
    color: #c99848;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

.lb-related-heading {
    margin: 0;
    color: #222222;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}


/*
|--------------------------------------------------------------------------
| Grids
|--------------------------------------------------------------------------
*/

.lb-related-grid {
    display: grid;
    gap: 22px;
    width: 100%;
}

.lb-related-grid-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lb-related-grid-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.lb-related-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border: 1px solid #e8e2da;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(37, 30, 23, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.lb-related-card:hover,
.lb-related-card:focus-within {
    transform: translateY(-3px);
    border-color: #d5b274;
    box-shadow: 0 8px 24px rgba(37, 30, 23, 0.10);
}

.lb-related-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.lb-related-card-link:hover,
.lb-related-card-link:focus {
    color: inherit;
    text-decoration: none !important;
}


/*
|--------------------------------------------------------------------------
| Related article images
|--------------------------------------------------------------------------
*/

.lb-related-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f0ec;
}

.lb-related-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lb-related-card:hover .lb-related-image {
    transform: scale(1.035);
}

.lb-related-image-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            rgba(38, 28, 83, 0.10),
            rgba(201, 152, 72, 0.16)
        ),
        #f5f2ee;
}


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

.lb-related-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.lb-related-type {
    display: block;
    margin: 0 0 8px;
    color: #c58f3c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.25px;
    line-height: 1.4;
    text-transform: uppercase;
}

.lb-related-card-title {
    margin: 0;
    color: #222222;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
}

.lb-related-card-link:hover .lb-related-card-title,
.lb-related-card-link:focus .lb-related-card-title {
    color: #b77d29;
}

.lb-related-meta {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    color: #8b8178;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.lb-related-description {
    margin: 11px 0 0;
    color: #66615c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.lb-related-action {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    color: #b77d29;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.4;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Resource cards
|--------------------------------------------------------------------------
*/

.lb-resource-card {
    border-top: 3px solid #c99848;
    background:
        linear-gradient(
            180deg,
            rgba(252, 249, 244, 0.95),
            #ffffff 44%
        );
}

.lb-resource-card .lb-related-card-body {
    min-height: 220px;
}


/*
|--------------------------------------------------------------------------
| Focus and accessibility
|--------------------------------------------------------------------------
*/

.lb-related-card-link:focus-visible {
    outline: 2px solid #c99848;
    outline-offset: -3px;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .lb-related-grid-posts,
    .lb-related-grid-resources {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lb-related-heading {
        font-size: 27px;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .lb-related-content {
        margin-top: 38px;
        padding-top: 28px;
    }

    .lb-related-section {
        margin-bottom: 38px;
    }

    .lb-related-grid-posts,
    .lb-related-grid-resources {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lb-related-heading-wrap {
        margin-bottom: 19px;
    }

    .lb-related-heading {
        font-size: 25px;
    }

    .lb-related-card-title {
        font-size: 19px;
    }

    .lb-resource-card .lb-related-card-body {
        min-height: 0;
    }
}