
/* ==============================
   POPUP TERMÍNOV KURZOV
============================== */

.course-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.68);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.course-popup {
    position: relative;
    width: 100%;
    max-width: 540px;

    padding: 30px 26px 26px;

    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);

    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.course-popup-overlay.active .course-popup {
    transform: translateY(0);
}

/* NADPIS */

.course-popup h2 {
    margin: 0;
    padding-right: 40px;

    color: #20334d;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ČERVENÁ LINKA */

.course-popup-line {
    width: 48px;
    height: 3px;

    margin: 13px 0 17px;

    background: #d12d3d;
    border-radius: 5px;
}

/* ZATVÁRACIE TLAČIDLO */

.course-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: #f0f1f3;
    color: #344054;

    font-size: 25px;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.course-popup-close:hover {
    background: #e3e5e9;
    color: #d12d3d;
}

/* JEDNOTLIVÉ KURZY */

.course-popup-item {
    padding: 15px 13px;
    margin-top: 12px;

    background: #f4f5f7;
    border-radius: 12px;
}

.course-popup-group {
    display: block;
    margin-bottom: 10px;

    color: #788397;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.course-popup-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* DÁTUM */

.course-popup-date {
    color: #20334d;
    font-size: 21px;
    font-weight: 600;
}

/* VOĽNÉ MIESTA */

.course-popup-places {
    padding: 7px 10px;

    color: #287443;
    background: #e5f2e9;
    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* MOBIL */

@media (max-width: 500px) {

    .course-popup {
        padding: 25px 17px 19px;
        border-radius: 15px;
    }

    .course-popup h2 {
        font-size: 23px;
    }

    .course-popup-close {
        top: 15px;
        right: 15px;
    }

    .course-popup-date {
        font-size: 17px;
    }

    .course-popup-places {
        font-size: 11px;
        padding: 6px 8px;
    }

    .course-popup-item {
        padding: 13px 10px;
    }
}

/* OBMEDZENIE ANIMÁCIÍ */

@media (prefers-reduced-motion: reduce) {
    .course-popup-overlay,
    .course-popup {
        transition: none;
    }
}
