@import '~@equitysim/react-uikit/dist/styles/styleguide';

.c-course-headline {
    &--loading {
        animation-name: loading;
        animation-duration: 0.75s;
        animation-iteration-count: infinite;
        animation-direction: alternate;
    }

    &__title {
        margin-top: v-space(2);
        margin-bottom: 0;
        font-weight: $font-weight-bold;
        color: $grey-50;
        font-size: 3.2rem;
        line-height: v-space(5);
    }

    &__duration {
        color: $grey-50;
        font-size: 1.4rem;
        line-height: v-space(3);
        margin: 0;
        margin-top: v-space(1);

        span {
            color: $grey-75;
        }
    }

    &__owner {
        margin-top: v-space(2);
        margin-bottom: 0;
        & > span {
            line-height: v-space(2);
        }
    }

    &__avatar {
        vertical-align: middle;
        margin-right: 1.6rem;
    }

    &__owner-name {
        @extend %heading-xs;
        margin: 0;
    }

    &__institution {
        @extend %heading-xs;
        margin: 0;
        color: $grey-70;
    }
}

@keyframes loading {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}
