/* General Animations */

/* Cards Section Animation */
.ag-format-container {
    width: 1142px;
    margin: 0 auto;
  }

.ag-courses_box {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-ms-flex-wrap: wrap;
flex-wrap: wrap;

padding: 50px 0;
}
.ag-courses_item {
-ms-flex-preferred-size: calc(33.33333% - 30px);
flex-basis: calc(33.33333% - 30px);

margin: 0 15px 30px;

overflow: hidden;

border-radius: 28px;
}
.ag-courses-item_link {
display: block;
padding: 30px 20px;
background-color: #121212;

overflow: hidden;

position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
text-decoration: none;
color: #FFF;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
-webkit-transform: scale(10);
-ms-transform: scale(10);
transform: scale(10);
}
.ag-courses-item_title {
min-height: 87px;
margin: 0 0 25px;

overflow: hidden;

font-weight: bold;
font-size: 30px;
color: #FFF;

z-index: 2;
position: relative;
}
.ag-courses-item_date-box {
font-size: 18px;
color: #FFF;

z-index: 2;
position: relative;
}
.ag-courses-item_date {
font-weight: bold;
color: #f9b234;

-webkit-transition: color .5s ease;
-o-transition: color .5s ease;
transition: color .5s ease
}
.ag-courses-item_bg {
height: 128px;
width: 128px;
background-color: #f9b234;

z-index: 1;
position: absolute;
top: -75px;
right: -75px;

border-radius: 50%;

-webkit-transition: all .5s ease;
-o-transition: all .5s ease;
transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
background-color: #4c49ea;
}



@media only screen and (max-width: 979px) {
.ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
}
.ag-courses-item_title {
    font-size: 24px;
}
}

@media only screen and (max-width: 767px) {
.ag-format-container {
    width: 96%;
}

}
@media only screen and (max-width: 639px) {
.ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
}
.ag-courses-item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
}
.ag-courses-item_link {
    padding: 22px 40px;
}
.ag-courses-item_date-box {
    font-size: 16px;
}
}
/* -------------------------------------------------------------------------------------------------------------------------------- */

/* Loading Screen Animation */

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ring {
    position: relative;
    width: 150px; /* To adjust the rings gap */
    height: 150px;
    border: 4px solid transparent;
    border-top: 4px solid #24ecff55;
    border-radius: 50%;
    margin: -45px;
    filter: drop-shadow(0 0 10px #24ecff) drop-shadow(0 0 30px #24ecff)
        drop-shadow(0 0 50px #24ecff);
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ring::before {
    content: "\f135";
    position: absolute;
    top: 10px;
    right: -4px;
    rotate: 90deg;
    font-family: FontAwesome;
    color: #24ecff;
    font-size: 1.5em;
}

.ring:nth-child(2) {
    border: 4px solid transparent;
    border-left: 4px solid #93ff2d;
    filter: drop-shadow(0 0 10px #93ff2d) drop-shadow(0 0 30px #93ff2d)
        drop-shadow(0 0 50px #93ff2d);
    animation: animate2 4s linear infinite;
    animation-delay: -1s;
}

.ring:nth-child(2)::before {
    content: "\f072";
    top: initial;
    bottom: -6px;
    left: 12px;
    right: initial;
    rotate: 45deg;
    color: #93ff2d;
}

@keyframes animate2 {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.ring:nth-child(3) {
    border: 4px solid transparent;
    border-left: 4px solid #ff1d6c55;
    filter: drop-shadow(0 0 10px #ff1d6c) drop-shadow(0 0 30px #ff1d6c)
        drop-shadow(0 0 50px #ff1d6c);
    animation: animate2 4s linear infinite;
    animation-delay: -2s;
}

.ring:nth-child(3)::before {
    content: "\f2dc";
    top: initial;
    bottom: -6px;
    left: 12px;
    right: initial;
    rotate: 135deg;
    color: #ff1d6c;
}

/* ---------------------------------------------------------------------------------------------------------------------------- */

/* Styles for elements to animate on scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------------------------------------------------------------------ */

/* Button Glowup Effect */
.glowup-button {
    padding: 0.5rem 1rem;
    background-color: #121212;
    border-radius: 5px;
    box-shadow: 1px 1px 10px rgb(2, 204, 240);
    color: #24ecff; 
    transition-duration: 0.4s;
}

.button-glowup:hover {
    background-color: #24edffea;
    color: rgb(255, 255, 255);
    box-shadow: rgb(255, 255, 255);
    border: none;
}