.single-resource {
    padding: 50px 0;
}
.single-resource .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.single-resource__resource-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*VIDEO*/

.single-resource .video-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
}
.single-resource .video-embed iframe {
    width: 100%;
    height: 100%;
}

/*PDF & ARTICLE*/

.single-resource a.resource-card__action {
    width: fit-content;
    padding: 20px 30px;
    background: var(--color--primary);
    border: 2px solid var(--color--heading);
    color: #fff;
    font-size: 26px;
    box-shadow: 2px 2px 5px #00000044;

    transition: all 0.2s ease;
}
.single-resource a.resource-card__action:hover {
    background: #ffffff;
    color: var(--color--primary);

    transition: all 0.2s ease;
}
.single-resource .resource-card__action .icon {
    margin-left: 10px;
    font-size: 35px;
}

/*IMAGE*/

.single-resource .container img,
.single-resource .container picture {
    width: 100%;
    height: auto;
}

/*RELATED RESOURCES*/
.single-resource__related-resources {
    margin: 40px 0;
    width: 100%;
}

.related-resources__section-title {
    margin-bottom: 30px;
    text-align: center;
    font-size: 40px;
}

.related-resources__row {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.related-resources__resource-wrapper {
    flex: 1 0 30%;
    max-width: 32%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid var(--color--heading);
    border-radius: 20px;
    box-shadow: 2px 2px 5px #00000044;
}
.related-resources__resource-wrapper:hover {
    border: 2px solid var(--color--primary);
}

.related-resources__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#00000033, #000000cc);
}
.related-resources__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.related-resources__image img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

a.related-resources__action {
    display: block;
    height: 100%;
}

.related-resources__resource {
    position: relative;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
}
.related-resources__image {
    position: absolute;
}

.related-resources__label {
    z-index: 5;
    font-size: 22px;
    color: #fff;
    display: flex;
    gap: 5px;
    align-items: center;

    transition: all 0.2s ease;
}
.related-resources__resource-wrapper:hover .related-resources__label {
    font-size: 26px;

    transition: all 0.2s ease;
}

.related-resources__text-wrapper {
    z-index: 5;
}
.related-resources__title {
    margin-top: 5px;
    padding: 10px 15px;
    border-radius: 10px;
    color: #fff;

    transition: all 0.2s ease;
}
.related-resources__resource-wrapper:hover .related-resources__title {
    background: #ffffffdd;
    color: var(--color--primary);
    text-shadow: 1px 1px 2px #ffffffff;

    transition: all 0.2s ease;
}

@media (max-width: 992px) {
    .related-resources__row {
        margin: 0 auto;
        flex-wrap: wrap;
        max-width: 500px;
    }
    .related-resources__resource-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
