/* =========================================================
   CREATORS MULTIVERSE ACADEMY
   Version: 1.0
   ========================================================= */

.cm-academy {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 0 80px;
}

/* SEARCH
--------------------------------------------------------- */

.cm-academy-search {
    position: relative;
    margin-bottom: 22px;
}

.cm-academy-search input {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    outline: none;
    background: rgba(255,255,255,.045);
    color: #fff;
    font: inherit;
    font-size: 15px;
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.cm-academy-search input::placeholder {
    color: rgba(255,255,255,.45);
}

.cm-academy-search input:focus {
    border-color: rgba(22,198,232,.65);
    background: rgba(22,198,232,.055);
    box-shadow: 0 0 0 4px rgba(22,198,232,.08);
}

/* TRACK FILTERS
--------------------------------------------------------- */

.cm-academy-tracks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

.cm-track-filter {
    appearance: none;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.7);
    padding: 10px 17px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.cm-track-filter:hover {
    color: #fff;
    border-color: rgba(22,198,232,.4);
    background: rgba(22,198,232,.07);
    transform: translateY(-1px);
}

.cm-track-filter.active {
    color: #06131d;
    border-color: transparent;
    background: linear-gradient(135deg,#16c6e8 0%,#79df79 72%,#b7d928 100%);
    box-shadow: 0 8px 28px rgba(22,198,232,.16);
}

/* LESSON GRID
--------------------------------------------------------- */

.cm-academy-lessons {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

/* LESSON CARD
--------------------------------------------------------- */

.cm-academy-lesson {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(22,198,232,.09),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );
    box-shadow: 0 18px 50px rgba(0,0,0,.13);
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.cm-academy-lesson::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 58px;
    height: 2px;
    background: linear-gradient(90deg,#16c6e8,#b7d928);
    opacity: .9;
}

.cm-academy-lesson:hover {
    transform: translateY(-5px);
    border-color: rgba(22,198,232,.22);
    box-shadow: 0 24px 65px rgba(0,0,0,.22);
}

.cm-academy-lesson h3 {
    margin: 13px 0 17px;
    font-size: clamp(19px,1.7vw,24px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.cm-academy-lesson h3 a {
    color: #fff;
    text-decoration: none;
}

.cm-academy-lesson h3 a:hover {
    color: #52d7e8;
}

.cm-academy-lesson p {
    margin: 0 0 25px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.75;
}

/* START LESSON LINK */

.cm-academy-lesson > a {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: auto;
    color: #4dd8e9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
    transition:
        color .2s ease,
        transform .2s ease;
}

.cm-academy-lesson > a:hover {
    color: #b7d928;
    transform: translateX(4px);
}

/* EMPTY STATE
--------------------------------------------------------- */

.cm-academy-lessons > p {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.025);
}

/* TABLET
--------------------------------------------------------- */

@media (max-width: 900px) {

    .cm-academy {
        padding-bottom: 60px;
    }

    .cm-academy-lessons {
        grid-template-columns: 1fr;
    }

    .cm-academy-lesson {
        min-height: 235px;
    }
}

/* MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .cm-academy {
        padding: 4px 0 45px;
    }

    .cm-academy-search input {
        min-height: 52px;
        border-radius: 13px;
        padding: 0 16px;
        font-size: 14px;
    }

    .cm-academy-tracks {
        gap: 7px;
        margin-bottom: 27px;
    }

    .cm-track-filter {
        padding: 9px 12px;
        font-size: 11px;
    }

    .cm-academy-lessons {
        gap: 13px;
    }

    .cm-academy-lesson {
        min-height: 0;
        padding: 23px 20px;
        border-radius: 17px;
    }

    .cm-academy-lesson::before {
        left: 20px;
        width: 44px;
    }

    .cm-academy-lesson h3 {
        margin-top: 10px;
        font-size: 19px;
    }

    .cm-academy-lesson p {
        font-size: 13px;
        line-height: 1.65;
    }
}