/* SLIDER */
#slider-container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-width: 1920px;
    max-height: 900px;
    position: relative;
    overflow: hidden;
}
/* BLUE FILTER */
#slider-container::before {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
    background-color: #012169;
    opacity: 0.5;
    z-index: 3;
}
#slider-container > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.5s opacity ease-in-out;
}
.slide[data-active] {
    opacity: 1;
    transition: 0.5s opacity ease-in-out;
}
.slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.slide .info-container {
    position: absolute;
    z-index: 3;
    left: 10%;
    top: 50%;
    translate: 0 -50%;
    width: 70%;
}
.slide[data-active] .info-container {
    animation: 2s ease-in-out 0s 1 opacityA;
}
.slide .info-container hr {
    border: 2px solid var(--fifth-color);
    width: 15%;
    margin: 10px 0 25px 0;
}
.slide .info-container h2 {
    color: var(--white);
    margin: 0;
    font-size: 70px;
}
.slide .info-container p {
    color: var(--white);
    margin: 0;
    font-size: 20px;
    margin-bottom: 30px;
}
.slide .info-container a {
    text-decoration: none;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid var(--white);
    border-radius: 15px;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}
.slide .info-container a:hover {
    background-color: transparent;
}
.buttons {
    display: flex;
    z-index: 4;
    position: absolute;
    right: 0.5%;
    bottom: 1%;
}
.carousel-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    font-size: 22px;
    color: var(--white);
    background: none;
    border: none;
    transition: 0.5s;
    transition-delay: 0.2s;
}
.carousel-button:hover {
    scale: 1.3;
    color: #02abee;
}
.carousel-button.reproduction {
    display: none;
}
.carousel-button.reproduction.active {
    display: flex;
}
.prev,
.next {
    font-size: 32px;
}
.slider-ornament {
    display: flex;
    flex-direction: column;
    position: absolute;
    rotate: 135deg;
}
.slider-ornament.animate {
    animation: opacityB 2s linear 0s 1 forwards;
}
.slider-ornament div {
    width: 800px;
    height: 160px;
    z-index: 8;
}
.slider-ornament.left {
    left: -315px;
    top: 0px;
}
.slider-ornament.right {
    right: -315px;
    bottom: 0px;
}
.slider-ornament .blue {
    background-color: var(--primary);
}
.slider-ornament .yellow {
    background-color: var(--fifth-color);
}
#promo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 2rem);
    max-width: 1920px;
    margin-top: 100px;
    gap: 50px;
}
#promo-section .wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    gap: 70px;
}
#promo-section .course {
    display: flex;
    background-color: var(--primary);
    width: 100%;
}
#promo-section .course .info {
    padding: 50px;
    color: var(--white);
    width: 100%;
}
#promo-section .course .info h2 {
    color: var(--fifth-color);
}
#promo-section .course .info h3 {
    margin-top: 20px;
}
#promo-section .course .img-wrapper {
    display: flex;
    justify-content: flex-end;
}
#promo-section .course img {
    display: flex;
    justify-content: flex-end;
    width: 600px;
    min-height: 400px;
}
#promo-section .course .info .link-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}
#promo-section .course .info a {
    cursor: pointer;
    text-align: center;
    background-color: var(--fifth-color);
    color: var(--black);
    font-size: 18px;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 10px;
    transition: right 0.2s ease-out 0.25s;
    overflow: hidden;
    z-index: 2;
    position: relative;
    text-decoration: none;
}
#promo-section .course .info a::after {
    position: absolute;
    content: "";
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    visibility: hidden;
    z-index: -1;
}
#promo-section .course .info a:hover {
    animation: lettersColor 1s linear;
}
#promo-section .course .info a:hover::after {
    visibility: visible;
    left: 100%;
    transition: left 1s ease-out;
}
/* Courses Cards Section */
#courses-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 120px 0;
}
#courses-section .wrapper {
    width: 50%;
    max-width: 1400px;
}
#courses-section .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}
#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;
}
#presentation {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 100px;
    background-color: var(--primary);
    padding: 50px 0;
}
#presentation .wrapper {
    margin: 0 auto 0;
    width: calc(100% - 2rem);
    max-width: 960px;
    color: var(--white);
}
#presentation .wrapper h2 {
    font-size: 48px;
}
#presentation .wrapper p {
    font-size: 24px;
    line-height: 35px;
}
#presentation .cards-wrapper {
    display: grid;
    place-content: center;
    grid-template-columns: repeat(auto-fill, 217.5px);
    gap: 30px;
    margin-top: 50px;
}
#presentation .cards-wrapper .card {
    background-color: var(--white);
    color: var(--primary);
    text-align: center;
    padding: 30px 15px;
    position: relative;
}
#presentation .cards-wrapper .card h4 {
    margin-top: 15px;
}
#presentation .cards-wrapper .card::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--fifth-color);
}
#presentation .link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}
#presentation .wrapper a {
    text-decoration: none;
    border: 4px solid var(--fifth-color);
    color: var(--white);
    padding: 15px 30px;
    font-size: 22px;
    font-weight: 600;
    transition: 0.3s;
}
#presentation .wrapper a:hover {
    border: 4px solid var(--fifth-color);
    background-color: var(--black);
    color: var(--fifth-color);
}
#inscription {
    text-align: center;
    width: 100%;
    max-width: 1920px;
    margin-bottom: 100px;
}
#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: 60px;
    color: var(--primary);
    background-color: var(--white);
    margin-top: -33px;
    padding: 0 30px;
    display: inline-block;
    margin-bottom: 20px;
}
#inscription .title-container span {
    display: block;
}
#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: 1280px) {
    #slider-container {
        height: 87vh;
    }
    .slider-ornament div {
        height: 140px;
    }
    .slide .info-container h2 {
        font-size: 50px;
    }
    .slide .info-container p,
    .slide .info-container a {
        font-size: 16px;
    }
}
@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: 1300px) {
    #courses-section .wrapper {
        width: 70%;
    }
}
@media (max-width: 1024px) {
    #inscription .paragraph-container p {
        width: 90%;
    }
}
@media (max-width: 950px) {
    #promo-section .course {
        flex-direction: column;
    }
    #promo-section .course .info {
        order: 1;
    }
}
@media (min-width: 901px) {
    #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: 900px) {
    #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: 80px 0;
    }
}
@media (max-width: 850px) {
    #inscription .title-container h2 {
        font-size: 45px;
        padding: 0 10px;
    }
}
@media (max-width: 820px) {
    #slider-container {
        height: 42vh;
    }
    .slider-ornament div {
        height: 100px;
    }
    .slider-ornament.left {
        left: -350px;
    }
    .slider-ornament.right {
        right: -350px;
    }
    .slide .info-container {
        width: 85%;
    }
    .slide .info-container h2 {
        font-size: 48px;
    }
    .slide .info-container p,
    .slide .info-container a {
        font-size: 16px;
    }
    #courses-section .wrapper {
        width: 100%;
    }
    #courses-section .cards-container .card h3 {
        padding: 15px 10px;
        font-size: 20px;
    }
}
@media (max-width: 768px) {
    #slider-container {
        height: 78vh;
    }
    .slide .info-container {
        left: 3%;
    }
    .slide .info-container p {
        display: none;
    }
    .slider-ornament div {
        height: 140px;
    }
}
@media (max-width: 650px) {
    #promo-section .course img {
        min-height: unset;
    }
    #inscription .title-container {
        border-width: 4px;
        width: calc(100% - 3rem);
    }
    #inscription .title-container h2 {
        font-size: 30px;
    }
    #inscription {
        gap: 90px;
    }
    #inscription .paragraph-container p {
        font-size: 20px;
        line-height: 30px;
    }
    #inscription .ornament {
        gap: 15px;
    }
}
@media (max-width: 600px) {
    #slider-container {
        height: 60vh;
    }
    .slide .info-container h2 {
        font-size: 42px;
    }
    .slider-ornament div {
        height: 100px;
    }
    .slide span {
        font-size: 11px;
    }
    #courses-section .cards-container .card div {
        font-size: 18px;
        width: 73%;
    }
    #presentation .wrapper {
        text-align: center;
    }
    #presentation .wrapper h2 {
        font-size: 32px;
    }
    #presentation .wrapper p {
        font-size: 18px;
    }
    #presentation .cards-wrapper .card img {
        width: 50px;
    }
    #presentation .cards-wrapper .card h4 {
        font-size: 12px;
    }
}
@media (max-width: 500px) {
    #promo-section .course .info {
        padding: 40px 25px
    }
    #promo-section .course .info .link-wrapper {
        margin-top: 30px;
    }
    #slider-container {
        height: 50vh;
    }
    .slide .info-container h2 {
        font-size: 30px;
    }
    .slider-ornament div {
        height: 90px;
    }
    #courses-section .cards-container .card div {
        font-size: 14px;
        width: 80%;
    }
    #inscription .title-container h2 {
        font-size: 23px;
        padding: 0 5px;
    }
    #inscription .title-container span {
        display: block;
    }
    #inscription .paragraph-container p {
        font-size: 18px;
    }
    #presentation .wrapper a {
        font-size: 18px;
    }
}
/* SLIDER ANIMATION */
@keyframes opacityA {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes opacityB {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.5;
    }
}
/* BUTTON CATEGORY LETTERS ANIMATION */
@keyframes lettersColor {
    0% {
        color: var(--fifth-color);
    }
    50% {
        color: var(--fifth-color);
    }
    100% {
        color: black;
    }
}