﻿.section-wrapper {
    position: relative;
    padding: 1.75rem 2.75rem;
}

    .section-wrapper .section-title {
        display: block;
        font-size: 2.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        padding-left: 1.25rem;
        margin-bottom: .75rem;
    }

        .section-wrapper .section-title a {
            color: var(--highlight-dark-1);
        }

        .section-wrapper .section-title:hover a {
            color: var(--highlight);
        }

.courses {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    align-items: start;
}

.course-wrapper,
.course-wrapper:hover {
    text-decoration: none;
}

    .course-wrapper .description {
        color: var(--text-default);
    }

.course {
    position: relative;
    min-width: 400px;
    width: 28vw;
    height: 17rem;
    background-color: #fbfbfb;
    border-radius: 5px;
    overflow: hidden;
    transition: .25s ease-in-out;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, .5);
}

    .course:hover {
        transform: scale(1.075);
        background: #fff;
    }

    .course .image {
        position: relative;
        width: 100%;
        height: 3.5rem;
        background: #888;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .course .badge,
    .course .badge img {
        width: 4.25rem;
        height: 4.25rem;
    }

    .course .badge {
        position: absolute;
        left: 1rem;
        bottom: -2.125rem;
        padding: 0;
    }

    .course .points-card {
        position: absolute;
        bottom: -2.25rem;
        right: 1rem;
        background-color: #d4d4d4;
        border-radius: 10px;
        color: #666;
        font-weight: 600;
        padding: .2rem .5rem;
        font-size: .85rem;
        line-height: 1.2rem;
        font-family: Arial, Helvetica, sans-serif;
    }

    .course .content {
        position: relative;
        padding: 2.25rem 1.5rem 0 1.5rem;
        height: 10.5rem;
        display: flex;
        flex-direction: column;
    }

    .course .title {
        font-size: 1.4rem;
        line-height: 1.6rem;
        font-weight: 600;
        margin-bottom: .3rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: left;
        flex-shrink: 0;
        color: var(--highlight-dark-1);
    }

        .course .title:hover {
            text-decoration: underline;
            color: var(--highlight);
        }

    .course .description {
        font-size: 1rem;
        text-align: justify;
        padding-right: 1.75rem;
        margin-bottom: .5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        hyphens: auto;
    }

    .course .info {
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 0 1.5rem .75rem 1.5rem;
        color: var(--text-light);
        width: 100%;
    }

.section-wrapper .button-area {
    width: 100%;
    text-align: center;
    left: -.75rem;
    margin-top: 1rem;
}

.accordion {
    min-height: calc(100vh - 16rem)
}

.accordion .accordion-item {
    background: transparent;
    border: none;
    /*padding: .5rem;*/
    padding-bottom: 1rem;
}

.accordion .accordion-body {
    transition: 750ms ease;
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.accordion .icon {
    margin-right: .5rem;
}

    .accordion .accordion-item.selected .accordion-body {
        max-height: 170rem;
        padding: 1rem;
    }

    .accordion .accordion-item.selected .icon {
        transform: scaleY(-1);
    }

.accordion-title {
    position: relative;
    width: 95%;
    left: 2.5%;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem;
    padding-left: .5rem;
    padding-bottom: .5rem;
    color: var(--text-light);
    border-bottom: 2px solid;
    color: var(--highlight-dark-1);
    border-color: var(--highlight-dark-1);
    border-image-source: linear-gradient(to right, var(--highlight-dark-1), var(--highlight-light-1));
    border-image-slice: 1;
    cursor: pointer;
    transition: 500ms ease-out;
}

.accordion .accordion-title:hover {
    padding-left: 1.6rem;
    color: var(--highlight);
    border-color: var(--highlight);
}

a.btn-contrast:hover {
    color: rgb(35, 88, 108);
    text-decoration: none;
}

.btn-contrast {
    font-size: 1.1rem;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

@media (max-width: 1120px) {
    .section-wrapper {
        padding: 1.25rem 1.5rem;
    }

        .section-wrapper .section-title {
            font-size: 2.5rem;
            margin-bottom: .5rem;
            padding: 0;
        }

    .accordion-title {
        width: 100%;
        left: 0;
        font-size: 1.75rem;
        padding: .5rem;
        border-bottom: 2px solid #fff;
    }

    .accordion .accordion-item.selected .accordion-body {
        padding: .5rem .25rem;
    }

    .courses {
        gap: 1rem;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .course {
        min-width: unset;
        width: 100%;
        height: 17rem;
    }

    .course-wrapper {
        display: inline-block;
        width: calc(50% - .5rem);
    }

    .course .image {
        height: 2.75rem;
    }

    .course .badge,
    .course .badge img {
        width: 4rem;
        height: 4rem;
    }

    .course .badge {
        left: .75rem;
        bottom: -2rem;
    }

    .course .content {
        padding: 2.2rem 1.3rem 0 1.3rem;
        height: 12.2rem;
    }

    .course .description {
        -webkit-line-clamp: 4;
        hyphens: auto;
    }

    .course .info {
        padding: 0 1.3rem .75rem 1.3rem;
    }
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 1rem .75rem;
    }

        .section-wrapper .section-title {
            font-size: 2.25rem;
        }

    .accordion-title {
        font-size: 1.25rem;
    }

    .course-wrapper {
        width: 100%;
    }
}