/* The new course cards only. Original website styles remain in style.css. */
.academy-courses {
    padding-block: 88px;
}

.academy-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.academy-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 36px 30px 30px;
    border: 1px solid #e9e9e9;
    border-radius: 42px;
    background: #fff;
}

.academy-course-card--highlighted {
    border: 2px solid #4a90ce;
    padding: 35px 29px 29px;
}

.academy-course-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 999px;
    background: #326faa;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.academy-course-badge--green {
    background: #16833f;
}

.academy-course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.academy-course-level {
    padding: 4px 11px;
    border-radius: 999px;
    background: #f0f6fc;
    color: #356eaa;
}

.academy-course-card h2 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.academy-course-description {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.7;
}

.academy-course-features {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
}

.academy-course-features li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 18px;
}

.academy-course-features li::before,
.academy-course-session::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.57em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #438fc9;
}

.academy-course-schedule {
    margin-top: auto;
    padding: 15px 13px 12px;
    border-radius: 13px;
    background: #f3f6fa;
}

.academy-course-schedule > p {
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1.5;
}

.academy-course-session {
    position: relative;
    padding-left: 15px;
    margin-bottom: 9px;
    font-size: 12px;
    line-height: 1.5;
}

.academy-course-session strong {
    font-weight: 600;
}

.academy-course-session--practical::before {
    background: #16833f;
}

.academy-course-schedule small {
    display: block;
    color: #8a8a8a;
    font-size: 9px;
    line-height: 1.5;
}

.academy-course-bottom {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e9;
}

.academy-course-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: #0a0a0a;
}

.academy-course-price strong {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.academy-course-price span {
    color: #777;
    font-size: 11px;
}

.academy-course-bottom .button {
    width: 100%;
    min-height: 47px;
    padding: 14px 18px;
    font-size: 10px;
}

@media (max-width: 1023px) {
    .academy-course-grid {
        gap: 22px;
    }

    .academy-course-card {
        padding: 30px 22px 25px;
        border-radius: 36px;
    }

    .academy-course-card--highlighted {
        padding: 29px 21px 24px;
    }

    .academy-course-card h2 {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .academy-courses {
        padding-block: 64px;
    }

    .academy-course-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 440px;
        margin-inline: auto;
    }

    .academy-course-card {
        padding: 36px 25px 25px;
        border-radius: 40px;
    }

    .academy-course-card--highlighted {
        padding: 35px 24px 24px;
    }

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

    .academy-course-description {
        font-size: 14px;
    }
}
