/*Hero*/
.education-hero {
    border-radius: 24px;
    background-color: #242424;
    min-height: 860px;
    padding-inline: 56px 182px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.education-hero:before {
    position: absolute;
    bottom: 0;
    right: 44px;
    content: url("../images/decoration/education-hero-decoration.png");
    opacity: 0;
    z-index: 1;
    animation: contentIn 1.2s 1.3s forwards;
}

.education-hero > .container {
    margin: 0;
}

.education-hero__text {
    display: flex;
    flex-direction: column;
    max-width: 874px;
}

.education-hero__title {
    margin-bottom: 32px;
    background: var(--gradient-light);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.education-hero__description {
    color: var(--neutral-300);
}

.education-hero__button {
    margin-top: 64px;
    background-color: #222222;
    padding: 18px 64px;
    max-width: 262px;
    position: relative;
    overflow: hidden;
}

.education-hero__button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: #1b5aff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width .7s cubic-bezier(0.4, 0.2, 0.2, 1), height .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.education-hero__button:hover::before,
.education-hero__button:focus-visible::before {
    width: 400px;
    height: 400px;
}

.education-hero__button span {
    position: relative;
    z-index: 1;
}

.education-hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../images/background/background-decoration-3.png") no-repeat bottom center;
    opacity: 0;
    animation: gradientIn 1.3s forwards;
    border-radius: 24px;
    pointer-events: none;
    background-size: cover;
}

.education-hero__content {
    position: relative;
    z-index: 2;
}

@keyframes gradientIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.education-hero__title,
.education-hero__description,
.education-hero__button {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.2s 1.3s forwards;
}

@keyframes contentIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Courses*/
.courses {
    background-color: #1D1D1D;
    border-radius: 32px;
    padding: 100px 67px;
}

@media (max-width: 580px) {
    .courses {
        padding: 50px 33px;
    }
}

.courses__header {
    text-align: center;
}

.courses__title {
    margin-bottom: 32px;
    background: var(--gradient-light);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.courses__subtitle {
    color: var(--neutral-300);
}

.courses__grid {
    margin-top: 74px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 408px);
    gap: 24px;
    justify-content: center;
}

.courses-card {
    background-color: #3D3D3D;
    padding: 24px 16px;
    border-radius: 32px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.courses-card__title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: var(--primary-50);
}

.courses-card__header {
    display: flex;
    justify-content: space-between;
}

.courses-card__code {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 135%;
    color: var(--neutral-50);
}

.courses-card__duration {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    color: var(--neutral-300);
}

.courses-card__description {
    color: var(--neutral-200);
    margin-top: 4px;
}

.courses-card__price {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    background: var(--gradient-light);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.courses-card:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .education-hero {
        padding: 22px 25px;
    }

    .courses {
        padding: 22px 25px;
    }

    .courses__title {
        margin-bottom: 10px;
    }

    .courses__grid {
        gap: 10px;
        margin-top: 20px;
    }

    .education-hero__text {
        text-align: center;
    }

    .education-hero__button {
        margin-inline: auto;
    }

    .education-hero:before {
        animation: contentShow 1.2s 1.3s forwards;
    }
}

@media (max-width: 500px) {
    .courses__grid {
        grid-template-columns: 1fr;
    }

    .courses-card__title {
        font-size: 16px;
    }

    .courses-card {
        min-height: 200px;
    }

    .courses-card__price {
        font-size: 24px;
    }

    .courses-card__duration, .courses-card__code {
        font-size: 14px;
    }
}