/*************
Courses
**************/
#courses {
    padding: 60px 0 20px;
    background-color: #f7f3ed;
}

#coursesTitle {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 900;
    padding: 0 20px;
}

#coursesDescription {
    text-align: center;
    font-size: 24px;
    padding: 0 20px;
    line-height: 1.3;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 30px;
}

#coursesQuick {
    margin-bottom: 40px;
    width: max-content;
    display: block;
    padding: 12px 15px 10px;
    font-size: 16px;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
    text-align: center;
}

.course {
    border: 5px solid white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 60px;
    min-height: 360px;
}

.courseImage {
    position: relative;
}

.courseImageElement {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.courseContent {
    background-color: white;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.courseSubtitle {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 1px;
}

html.sale .courseSubtitle {
    width: fit-content;
    background-color: var(--sale-2);
    color: black;
    padding: 7px 20px 2px;
    border-radius: 5px;
    margin: 0 auto 10px;
}

.courseTitle {
    font-weight: 800;
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
    color: #282a29;
}

.courseAge {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 10px;
    text-align: center;
    color: #282a29;
    margin-top: -8px;
}

.courseDescription {
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
    color: #282a29;
}

.courseWhy {
    text-align: center;
    color: #282a29;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 34px;
    position: relative;
    cursor: pointer;
}

.courseWhy::after {
    content: "";
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 100%;
    position: absolute;
    background-color: #282a29;
    max-width: 227px;
}

.courseButton {
    border-radius: 8px;
    letter-spacing: 1px;
    font-size: 15px;
    z-index: 1;
    border: 2px solid var(--orange);
    max-width: 300px;
    background-color: var(--orange);
    margin: 0 auto 15px;
    width: 100%;
    text-align: center;
    font-weight: 900;
}

.courseButton.alt {
    border: 2px solid var(--orange);
    background-color: transparent;
    color: black;
    font-weight: 600;
}

.coursePreview {
    text-align: center;
    z-index: 1;
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    display: block;
}

.coursePreview svg {
    color: var(--orange);
    margin-left: 5px;
}

.courseOverlay {
    padding: 20px 40px;
    position: absolute;
    background-color: #f7f3ed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.courseOverlay.active {
    visibility: visible;
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.courseOverlayTitle {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.courseOverlayTitle > span {
    font-style: italic;
}

.courseOverlayInfo {
    font-size: 14px;
    margin-bottom: 5px;
}

.courseOverlayInfo:last-of-type {
    margin-bottom: 10px;
}

.courseOverlayButton {
    border-radius: 8px;
    letter-spacing: 1px;
    font-size: 15px;
    margin: auto;
}

.courseOverlayButton.alt {
}

@media (max-width: 800px) {
    #courses {
        padding: 20px 0;
    }

    #coursesDescription {
        font-size: 18px;
    }

    .course {
        grid-template-columns: 1fr;
    }

    .courseContent {
        padding: 40px 20px;
    }

    .courseImage {
        height: auto;
    }

    .courseOverlay {
        padding: 20px;
    }

    .courseOverlayTitle {
        font-size: 20px;
    }

    .courseOverlayInfo {
        font-size: 14px;
    }
}

/*************
Offerings
**************/

#offerings {
    padding: 20px 20px 80px;
    background-color: #f7f3ed;
}

#offeringsInner {
}

#offeringsTitle {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

#offeringsDescription {
    text-align: center;
    margin-bottom: 30px;
    font-size: 19px;
}

#offeringGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    margin-bottom: 35px;
}

.offering {
    display: flex;
    flex-direction: column;
}

.offeringImage {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

.offeringContent {
    padding: 20px;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offeringTitle {
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 10px;
}

.offeringSubtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.offeringPrice {
    font-weight: 800;
    text-align: right;
    line-height: 1;
    font-size: 20px;
    text-transform: uppercase;
    margin-top: auto;
}

@media (max-width: 800px) {
    #offerings {
        padding: 10px 20px 80px;
    }

    #offeringGrid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .offeringImage {
        height: auto;
    }
}