/* 
    Kurzusok előnézet 
    (template-parts/home/blue-courses.php, template-parts/home/gold-courses.php) 
*/

.courses-title {
    font-family: "Cormorant Garamond";
    font-size: 42px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.courses .glammy-button {
    margin: 60px auto;
}

.courses-title,
.course-content {
    background: -webkit-linear-gradient(180deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
}

.courses-title,
.course-content {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.courses-row,
.courses-col {
    box-sizing: border-box;
    height: 100%;
}

.courses-row {
    box-sizing: border-box;

    width: 100%;
    height: auto;

    gap: 50px;

    display: flex;
    flex-direction: row;

    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.courses-col {
    flex: 1 0 calc((100% / 3) - 36px);
    height: auto;
    display: inline-flex !important;
    overflow: hidden;
}

/***
    course
***/

.course {
    box-sizing: border-box;
    position: relative;

    width: 100%;
    height: auto;
}

.blue .course {
    background: var(--color-main-alpha);
}

.gold .course {
    background: var(--color-gold-dark-alpha);
}

/***
    course wrapper row/col
***/
.course-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 10px;
    text-decoration: none;
    overflow: hidden;
}

.course-wrapper:hover {
    text-decoration: none;
}

.course-wrapper-row,
.course-wrapper-col {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
}

.course-wrapper-row {
    flex-direction: row;
    flex-wrap: wrap;
}

.course-wrapper-col {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.course-wrapper-col:nth-child(1) {
    justify-content: center;
    align-items: center;
}

.course-wrapper-col:nth-child(2) {
    justify-content: center;
    align-items: center;
    height: 80px;
}

.course-wrapper-col:nth-child(3) {
    justify-content: center;
    align-items: center;
    height: 60px;
}

.course-wrapper-col:nth-child(4) {
    justify-content: center;
    align-items: center;
}

.course-wrapper-col:nth-child(2),
.course-wrapper-col:nth-child(4) {
    padding: 0 15px;
}

.course-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(1px 1px 25px #f9e2ae);
}

.course-title,
.course-subtitle {
    text-transform: uppercase;
    font-family: "Cormorant Garamond";
    white-space: normal;
    text-align: center;
}

.course-title {
    font-size: 32px;
}

.course-subtitle {
    font-size: 20px;
}

.course-content {
    box-sizing: border-box;
    display: block;
    height: 100%;
    font-size: 20px;
    font-family: "Montserrat";
}

.course-date {
    box-sizing: border-box;

    position: absolute;
    top: 10px;
    right: 10px;

    padding: 5px 10px;

    background-color: rgba(150, 150, 150, 0.2);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.15));
}

.courses-text {
    margin: 0;
    box-sizing: border-box;
    display: block;
}

@media screen and (min-width: 981px) and (max-width: 1280px) {
    .course-wrapper-col:nth-child(2) {
        height: 75px;
    }

    .course-title {
        font-size: 20px;
    }

    .course-subtitle {
        font-size: 18px;
    }

    .course-content {
        font-size: 16px;
    }
}

@media screen and (max-width: 980px) {
    .courses-row::-webkit-scrollbar {
        opacity: 0;
    }

    .courses-row {
        width: auto;
    }

    .courses-col {
        flex: initial;
        width: 300px;
    }

    .course-title {
        font-size: 26px !important;
    }

    .courses-title {
        line-height: initial !important;
    }
}