.ag-courses_box {
    padding-top: 50px 0;
    padding-bottom: 50px 0;
}

.webdesbox {
    padding-top: 50px;
}

.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(13);
    -ms-transform: scale(13);
    transform: scale(13);
}

.ag-courses-item_title {
    margin: 0 0 25px;

    overflow: hidden;

    font-weight: bold;
    font-size: 5vw;
    color: #FFF;

    z-index: 2;
    position: relative;
    height: 275px;
}

.ag-courses-item_date-box {
    font-size: 18px;
    color: #FFF;

    z-index: 2;
    position: relative;
}

.ag-courses-item_date {
    font-weight: bold;
    color: #ffc400;

    -webkit-transition: color .5s ease;
    -o-transition: color .5s ease;
    transition: color .5s ease
}

.ag-courses-item_bg {
    height: 128px;
    width: 128px;
    background-color: #ffc400;

    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;
}

@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;
    }
}

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap");

:root {
    /* Colors */
    --brand-color: hsl(46, 100%, 50%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    /* Fonts */
    --font-title: "Montserrat", sans-serif;
    --font-text: "Lato", sans-serif;
}

/* RESET */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h2 {
    font-size: 2.25rem;
    font-family: var(--font-title);
    color: var(--white);
    line-height: 1.1;
}

.flow>*+* {
    margin-top: var(--flow-space, 1em);
}

/* CARD COMPONENT */

.card2 {
    display: grid;
    place-items: center;
    width: 80vw;
    max-width: 21.875rem;
    height: 36rem;
    overflow: hidden;
    border-radius: 0.625rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
}

.card2>* {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.card__background {
    object-fit: fill;
    max-width: 100%;
    height: 100%;
}

.card__content {
    object-fit: fill;
    --flow-space: 0.9375rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    height: 100%;
    width: 100%;
    padding: 12% 1.25rem 1.875rem;
    background: linear-gradient(180deg,
            hsla(0, 0%, 0%, 0) 0%,
            hsla(0, 0%, 0%, 0.3) 10%,
            hsl(0, 0%, 0%) 100%);
}

.card__content--container {
    object-fit: fill;
}

.card__title {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
}

.card__title::after {
    content: "";
    position: absolute;
    height: 0.3125rem;
    width: calc(100% + 1.25rem);
    bottom: calc((1.25rem - 0.5rem) * -1);
    left: -1.25rem;
    background-color: var(--brand-color);
}

.card__button {
    padding: 0.75em 1.6em;
    width: fit-content;
    width: -moz-fit-content;
    font-variant: small-caps;
    font-weight: bold;
    border-radius: 0.45em;
    border: none;
    background-color: var(--brand-color);
    font-family: var(--font-title);
    font-size: 1.125rem;
    color: var(--black);
}

.card__button:focus {
    outline: 2px solid black;
    outline-offset: -5px;
}

@media (any-hover: hover) and (any-pointer: fine) {
    .card__content {
        transform: translateY(62%);
        transition: transform 500ms ease-out;
        transition-delay: 500ms;
    }

    .card__title::after {
        opacity: 0;
        transform: scaleX(0);
        transition: opacity 1000ms ease-in, transform 500ms ease-out;
        transition-delay: 500ms;
        transform-origin: right;
    }

    .card__background {
        transition: transform 500ms ease-in;
    }

    .card__content--container> :not(.card__title),
    .card__button {
        opacity: 0;
        transition: transform 500ms ease-out, opacity 500ms ease-out;
    }

    .card2:hover,
    .card2:focus-within {
        transform: scale(1.05);
        transition: transform 500ms ease-in;
    }

    .card2:hover .card__content,
    .card2:focus-within .card__content {
        transform: translateY(0);
        transition: transform 500ms ease-in;
    }

    .card2:focus-within .card__content {
        transition-duration: 0ms;
    }

    .card2:hover .card__background,
    .card2:focus-within .card__background {
        transform: scale(1.3);
    }

    .card2:hover .card__content--container> :not(.card__title),
    .card2:hover .card__button,
    .card2:focus-within .card__content--container> :not(.card__title),
    .card2:focus-within .card__button {
        opacity: 1;
        transition: opacity 500ms ease-in;
        transition-delay: 1000ms;
    }

    .card2:hover .card__title::after,
    .card2:focus-within .card__title::after {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
        transition: opacity 500ms ease-in, transform 500ms ease-in;
        transition-delay: 500ms;
    }
}

body {
    background-color: #000000;
}

.fontmoblie{
    font-size: 24px;
}

.navbar {
    transition: all 0.5s;
}

.navbar-scrolled {
    background-color: #0f0f0c;
    box-shadow: 0 3px 10px rgb(0, 0, 0, 0.15);
}

.nav-link {
    color: aliceblue;
}

.bgheader {
    background-image: url('Images/Blacksandbg.jpg');
    background-size: cover;
}

.footer {
    background-color: #0f0f0c;
}

.txt {
    color: #ffc400;
}
.bg1{
    background-color: #ffc400;;
}

.bg2 {
    background: linear-gradient(to bottom, #231F20, #ffc400);
}

.bg3 {
    background-color: #EFE6DD;
}

.bg4 {
    background: linear-gradient(to right, #EFE6DD, #ffffff);
}

.bg5 {
    background: linear-gradient(to right, #000000, #494949);
}

.bg6 {
    background-color: #0f0f0c;
}

.bs {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.bs2 {
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

body {
    font-family: 'Roboto', sans-serif;
}

.normal {
    font-family: 'Roboto', sans-serif;
}

.hd {
    font-family: 'Roboto', sans-serif;
}

.hlink {
    font-family: 'Roboto', sans-serif;
    font-size: x-large;
    color: white;
}

.hlink:active,
.hlink:visited,
.hlink:link {
    font-family: 'Roboto', sans-serif;
    color: white;
}

.hlink:hover {
    color: #ffae00;
}

button {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 5px 0 #ffae00;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    margin: 0;
    outline: 0;
    padding: 12px 20px;
    transition: all .1s linear;
}

.vscroll {

    width: auto;
    height: 600px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
}

button:active {
    box-shadow: 0 2px 0 #ffee00;
    transform: translateY(3px);
}

.btn {
    color: #ffffff;
}

.neonText {
    animation: flicker 5.5s infinite alternate;
    position: flex;
    color: #fdfdfd;
    z-index: 1;
}

/* Flickering animation */
@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        z-index: -1;
        text-shadow:
            0 0 4px #dfdfdf,
            0 0 11px #dfdfdf,
            0 0 19px #dfdfdf,
            0 0 40px #ffbb00,
            0 0 50px #ffbb00,
            0 0 60px #ffbb00
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

#Neon {
    font-size: 65px;
    padding-top: 20px;
    padding-bottom: 50px;
    margin: 0px;
}

#mainlogo {
    padding-top: 48px;
    padding-bottom: 48px;
}

#parCard {
    padding-top: 96px;
    padding-bottom: 48px;
}

/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {
    opacity: 0.7;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 75px;
    /* Location of the box */
    left: 0;
    top: 5vw;
    width: 100%;
    /* Full width */
    height: 90%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    width: 100%;
    max-width: 700px;
    background-color: #000000;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

@media only screen and (max-width: 576px) {
    #term {
        height: 300px;
    }

    .mobiledisable{
        display: none;
    }

    .fontmoblie{
        font-size: 16px;
    }

    .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Stay in place */
        z-index: 1;
        /* Sit on top */
        padding-top: 75px;
        /* Location of the box */
        left: 0;
        top: 19vw;
        width: 100%;
        /* Full width */
        height: 90%;
        /* Full height */
        overflow: auto;
        /* Enable scroll if needed */
        background-color: rgb(0, 0, 0);
        /* Fallback color */
        background-color: rgba(0, 0, 0, 0.9);
        /* Black w/ opacity */
    }


    .vscroll {

        width: auto;
        height: auto;
        overflow-x: none;
        overflow-y: none;
        text-align: none;
    }

    #mainlogo {
        padding-top: 25px;
        padding-bottom: 15px;
    }

    #Neon {
        font-size: 28px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    @keyframes flicker {

        0%,
        18%,
        22%,
        25%,
        53%,
        57%,
        100% {
            z-index: -1;
            text-shadow:
                0 0 4px #dfdfdf,
                0 0 5px #dfdfdf,
                0 0 6px #dfdfdf,
                0 0 10px #ffbb00,
                0 0 15px #ffbb00
        }

        20%,
        24%,
        55% {
            text-shadow: none;
        }
    }
}