@media (min-width: 1025px) {
    #jumbotron {
        min-height: 610px;
    }
}
#jumbotron img {
    object-fit: cover;
}
/* Courses Cards Section */
#courses-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 120px;
}
#courses-section .wrapper {
    position: relative;
    width: 50%;
    max-width: 1400px;
}
#courses-section .wrapper::before {
    position: absolute;
    content: "";
    border-bottom: 4px solid var(--fifth-color);
    border-left: 4px solid var(--fifth-color);
    border-right: 4px solid var(--fifth-color);
    bottom: -65px;
    height: 250px;
    left: 0;
    right: 0;
    box-sizing: inherit;
    z-index: -1;
}
#courses-section .wrapper::after {
    border-bottom: 8px solid var(--primary);
    border-left: 8px solid var(--primary);
    border-right: 8px solid var(--primary);
    bottom: -40px;
    content: "";
    height: 300px;
    position: absolute;
    left: -25px;
    right: -25px;
    box-sizing: inherit;
    z-index: -1;
}
#courses-section .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#courses-section .cards-container a {
    text-decoration: none;
    width: 45%;
}
#courses-section .cards-container .card {
    display: flex;
    flex-direction: column;
    background-color: #02abee;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}
#courses-section .cards-container .card h3 {
    position: absolute;
    width: 100%;
    padding: 30px 20px;
    color: var(--white);
    background-image: linear-gradient(
        to top,
        transparent,
        rgba(0, 0, 0, 0.45) 1.75rem
    );
    text-shadow: 0 0 1rem #000;
    font-size: 30px;
}
#courses-section .cards-container .card div {
    position: absolute;
    bottom: 10%;
    right: -210px;
    background-color: var(--fifth-color);
    color: var(--black);
    font-size: 25px;
    font-weight: 600;
    padding: 20px;
    border-radius: 10px 0 0 10px;
    transition: right 0.2s ease-out 0.25s;
    overflow: hidden;
    z-index: 2;
}
#courses-section .cards-container .card div::after {
    position: absolute;
    content: "";
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    visibility: hidden;
    z-index: -1;
}
#courses-section .cards-container .card div:hover {
    animation: lettersColor 1s linear;
}
#courses-section .cards-container .card div:hover::after {
    visibility: visible;
    left: 100%;
    transition: left 1s ease-out;
}
#benefits {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 140px;
    max-width: 1920px;
    width: calc(100% - 2rem);
    padding: 50px 0;
}
#benefits .cards-container {
    max-width: 1180px;
    width: 100%;
    display: grid;
    place-content: center;
    place-items: center;
    gap: 25px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
#benefits .cards-container .card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
}
#benefits .cards-container .card .info-wrapper {
    display: flex;
    flex-direction: column;
    width: 65%;
    gap: 20px;
}
#benefits .cards-container .card img {
    width: 80px;
    border-radius: 50%;
}
#benefits .cards-container .card h5 {
    font-size: 20px;
    margin: 0;
}
#benefits .cards-container .card p {
    font-size: 18px;
    margin: 0;
}
#inscription {
    text-align: center;
    width: 100%;
    max-width: 1920px;
    margin: 120px 0 80px;
}
#inscription .title-container {
    content: "";
    border: 8px solid var(--primary);
    border-bottom: 0;
    margin: 0 auto 0;
    width: calc(100% - 3rem);
    max-width: 960px;
}
#inscription .title-container h2 {
    font-size: 70px;
    color: var(--primary);
    background-color: var(--white);
    margin-top: -33px;
    padding: 0 30px;
    display: inline-block;
    margin-bottom: 20px;
}
#inscription .title-container h2 span:first-child {
    font-weight: 400;
}
#inscription .paragraph-container {
    padding: 30px 0;
    background-image: url(../img/HERO_OVERLAY.jpg);
    background-size: cover;
}
#inscription .ornament {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 20px 0;
    border: 4px solid var(--fifth-color);
    border-top: 0;
    margin: 0 auto 0;
    width: calc(100% - 3rem);
    max-width: 1280px;
}
#inscription .paragraph-container p {
    width: 52%;
    font-size: 27px;
    line-height: 50px;
    color: var(--white);
}
#inscription .paragraph-container a {
    text-decoration: none;
    color: var(--primary);
    padding: 10px 15px;
    background-color: var(--white);
    border-radius: 5px;
    border: 2px solid var(--gray-1);
    font-size: 20px;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}
#inscription .paragraph-container a:hover {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
@media (max-width: 1300px) {
    #courses-section .wrapper {
        width: 70%;
    }
    #benefits .title-wrapper {
        width: 85%;
    }
}
@media (max-width: 1280px) and (height: 648.67px) {
    #courses-section .cards-container .card h3 {
        padding: 15px 10px;
        font-size: 18px;
    }
    #courses-section .cards-container .card div {
        right: -140px;
        font-size: 15px;
        padding: 15px;
    }
    #inscription .ornament {
        max-width: 960px;
    }
}
@media (max-width: 1024px) and (height: 648.67px) {
    #inscription .ornament {
        padding: 0;
    }
    #inscription .paragraph-container p {
        width: 80%;
        font-size: 18px;
        line-height: 35px;
    }
    #inscription .paragraph-container::after {
        top: 30px;
    }
}
@media (max-width: 1024px) {
    #inscription .paragraph-container p {
        width: 90%;
    }
}
@media (max-width: 850px) {
    #inscription .title-container h2 {
        font-size: 50px;
    }
}
@media (max-width: 820px) {
    #courses-section .wrapper {
        width: 85%;
    }
    #courses-section .wrapper::after {
        bottom: -30px;
        height: 400px;
    }
    #courses-section .wrapper::before {
        bottom: -50px;
        height: 300px;
    }
    #courses-section .cards-container a {
        width: 85%;
    }
    #courses-section .cards-container .card h3 {
        padding: 25px 20px;
        font-size: 30px;
    }
}
@media (max-width: 650px) {
    #benefits .cards-container {
        grid-template-columns: unset;
    }
    #benefits .cards-container .card {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }
    #benefits .cards-container .card .info-wrapper {
        width: 90%;
    }
    #inscription .title-container {
        border-width: 4px;
        width: calc(100% - 3rem);
    }
    #inscription .title-container h2 {
        font-size: 35px;
        padding: 0 10px;
    }
    #inscription {
        gap: 90px;
    }
    #inscription .paragraph-container p {
        font-size: 20px;
        line-height: 30px;
    }
    #inscription .ornament {
        gap: 15px;
    }
}
@media (min-width: 601px) {
    #courses-section .cards-container .card div {
        transition: right 0.2s ease-out 0.25s;
    }
    #courses-section .cards-container .card:hover div {
        right: 0;
        transition: right 0.2s ease-in-out 0s;
    }
}
@media (max-width: 600px) {
    #courses-section .cards-container .card div {
        font-size: 18px;
        width: 73%;
    }
    #courses-section .wrapper {
        width: 85%;
    }
    #courses-section .wrapper::after {
        height: 620px;
        left: -20px;
        right: -20px;
    }
    #courses-section .wrapper::before {
        height: 480px;
    }
    #courses-section .cards-container a {
        width: 85%;
    }
    #courses-section .cards-container .card div {
        right: 50%;
        translate: 50%;
        font-size: 19px;
        text-align: center;
        width: 70%;
        padding: 10px;
        border-radius: 5px;
    }
    #courses-section {
        margin-top: 80px;
    }
    #benefits {
        padding: 0;
    }
}
@media (max-width: 500px) {
    #courses-section .cards-container .card div {
        font-size: 14px;
        width: 80%;
    }
    #courses-section .cards-container .card h3 {
        padding: 20px 15px;
        font-size: 24px;
    }
    #inscription .title-container span {
        display: block;
    }
    #inscription .ornament p {
        font-size: 18px;
    }
    #benefits {
        gap: 30px;
    }
    #benefits .cards-container {
        margin-top: 0;
        width: 90%;
    }
}
/* BUTTON CATEGORY LETTERS ANIMATION */
@keyframes lettersColor {
    0% {
        color: var(--fifth-color);
    }
    50% {
        color: var(--fifth-color);
    }
    100% {
        color: black;
    }
}
