@keyframes glowing {
    0% {
        filter: grayscale(1);
    }
    50% {
        filter: grayscale(1);
    }
    75% {
        filter: grayscale(0);
    }
    100% {
        filter: grayscale(1);
    }
}

@keyframes beating {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1);
    }
    65% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.1);
        color: #ffffff;
    }
    85% {
        transform: scale(0.95);
        color: #ffee70;
    }
    100% {
        transform: scale(1);
        color: #ffffff;
    }
}

html, body {
    overflow-x: hidden;
}

body {
    margin-top: 90px;
    font-family: Arial, sans-serif, 'Montserrat';
}

.font1, .btn, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: Arial, sans-serif;
    font-weight: 600;
}

.subtitle {
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #174895;
}

.text-white .subtitle {
    color: #eeeeee;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cards .card img {
    width: 80px;
    margin: 30px auto;
}

.cards .card h5 {
    color: #174895;
}

.cards-5 .flip {
    text-align: center;
    width: 280px;
    margin: 5px;
    perspective: 1000px;
}

.cards-5 .flip .card {
    background-color: #ffffff;
}

.cards-5 .flip .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cards-5 .flip:hover .flip-inner {
    transform: rotateY(180deg);
}

.cards-5 .flip .card, .cards-5 .flip .card-back {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.cards-5 .flip .card-back {
    position: absolute;
    top: 0;
}

.card-back {
    transform: rotateY(180deg);
    background-color: dodgerblue;
    color: white;
}

.card-back, .card-back .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boxes2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    color: #ffffff;
}

.boxes2 .item {
    width: 32%;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    margin: 5px;
}

.boxes2 .item:nth-child(even) {
    border-radius: 5px;
    background-color: rgba(9, 138, 210, 0.1);
}

.boxes2 h5 {
    margin-bottom: 25px;
    font-size: 21px;
}

.boxes2 .item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
}

h2 {
    margin-bottom: 35px;
    font-size: 42px;
}

.font2 {
    font-family: Arial, sans-serif;
}

sup {
    font-size: 0.7em;
}

img {
    max-width: 100%;
}

.inline-block {
    display: inline-block;
}

.img-bordered-bottom {
    border-bottom: solid #174895 3px;
}

.border-top-primary {
    border-top: solid #174895 2px;
}

.border-y-primary {
    border-top: solid #174895 2px;
    border-bottom: solid #174895 2px;
}

.bg-primary {
    background-color: #174895 !important;
}

.bg-secondary {
    background-color: rgba(34, 180, 155, 1) !important;
}

.all-white * {
    color: #ffffff;
}

.text-primary {
    color: #174895 !important;
}

.text-secondary {
    color: #fff965 !important;
}

h1 {
    font-size: 2.3rem;
}

.cta-half {
    display: flex;
    align-items: center;
}

.cta-half > div {
    width: 50%;
}

#mainpic {
    background-image: url("../images/main-bg.jpg");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 300px;
}

#student-wrap {
    max-width: 550px;
}

#country-group,
#state-group,
#country-group2,
#state-group2 {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#mainform,
#mainform2 {
    padding: 55px 25px 0 25px;
}

#mainform h1,
#mainform2 h1 {
    font-size: 21px;
    margin-bottom: 15px;
}

#mainform h1 {
    color: #174895;
}

#mainform .form-group,
#mainform2 .form-group {
    margin-bottom: 10px;
}

#mainform .tnc,
#mainform2 .tnc {
    margin: 0 -25px;
    padding: 25px 15px;
    text-align: center;
    font-size: 0.9em;
}

.form-control {
    color: #666666 !important;
}

.btn-light,
.btn-light i {
    color: #174895;
}

.btn-default {
    border-radius: 5px;
    border: 1px solid #CCC;
}

.btn-primary {
    background-color: #174895;
    border: none;
}

.btn-primary:hover {
    background-color: #ea3c3b;
}

.btn-secondary {
    background-color: #fff965;
    color: #222222;
    border: none;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-three {
    background-color: #21b49a;
    color: #ffffff;
}


.btn-three:hover {
    background-color: #174895;
    color: #ffffff;
}

.btn-danger {
    background-color: #830f3e;
}

.btn-warning, .btn-warning:hover {
    border: none;
}

.btn-warning, .btn-warning:active, .btn-warning:focus, .btn-warning:visited {
    background-color: #ff8027;
}

.btn-warning:hover {
    background-color: #cc2266;
}

.icon-box {
    display: flex;
    background-color: #ffffff;
    border-radius: 5px;
    margin: 5px;
    padding: 5px;
    box-shadow: rgba(0,0,0,0.02) 1px 1px 5px;
}

.icon-box .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(28, 165, 228, 0.2);
    color: #1ca5e4;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.icon-box .text {
    display: flex;
    align-items: center;
}

section {
    padding: 55px 25px;
}

section h2.title {
    text-transform: uppercase;
    font-size: 28px;
    margin-bottom: 35px;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    color: #174895;
}

section h2.title2 {
    text-transform: uppercase;
    font-size: 28px;
    margin-bottom: 15px;
}

section h2.title::before, section h2.title::after {
    border-top: 0;
    border-bottom: 0;
    content: '';
    flex-grow: 0;
    width: 60px;
    height: 2px;
    background: #174895;
    top: 0;
}

section h2.title.text-white::before, section h2.title.text-white::after {
    background: #ffffff;
}

section h2.title::before {
    margin-right: 15px;
}

section h2.title::after {
    margin-left: 15px;
}

.heading-block {
    border-left: solid 2px #174895;
    padding: 15px;
    margin-left: -15px;
    margin-bottom: 15px;
    background-color: rgba(238, 238, 238, 0.2);
}

.heading-block h5 {
    font-weight: normal;
}

.heading-block .icon i {
    font-size: 26px;
    color: #ffffff;
    background-color: #174895;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#proven-cases {
    background: linear-gradient(45deg, rgba(10, 168, 255, 0.3), rgba(255, 255, 255, 0.99), rgb(255, 255, 255), rgba(255, 255, 255, 0.8)), url("../images/bg-1.jpg");
    background-attachment: fixed;
}


.text-promo {
    font-size: 16px;
    line-height: 1.4em;
    text-transform: uppercase;
    border-left: solid 2px #174895;
    padding: 10px;
}

nav#navbar.scrolled .text-promo {
    font-size: 14px;
    padding: 0 10px;
}

.navbar .container {
    max-width: 1200px;
}

.text-promo small {
    font-size: 13px;
}

.flag {
    position: relative;
    width: 140px;
    margin-top: -60px;
    margin-right: 5px;
}

.flag .text1 {
    font-size: 32px;
}

.flag .text2 {
    font-size: 18px;
}

.flag .flag-text {
    width: 140px;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    padding: 30px 5px 15px 5px;
    color: #ffffff;
    font-size: 34px;
    line-height: 0.8em;
    filter: drop-shadow(1px 1px 3px rgba(34, 34, 34, 0.5));
}

.flag .flag-text:after {
    position: absolute;
    content: "";
    display: block;
    margin-left: -5px;
    width: 140px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: -1;
    background-image: url('../images/flag-tail.png');
}

.nav-link {
    color: #174895;
}


.programmes-wrap h2 {
    margin-left: 25px;
}

#programmes .nav-tabs {
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 25px;
}

#programmes .nav-link {
    color: #ffffff;
}

#programmes .nav-link.active {
    color: #174895;
    font-size: 20px;
}

#programmes .card:hover .card-title {
    min-height: 0;
}

#programmes .card > .card-body {
    transition: ease all 0.2s;
    font-size: 14px;
}

#programmes .card:hover > .card-body {
    transition: ease all 0.2s;
    margin-left: 0;
    position: absolute;
}

#programmes .card > .card-body > p {
    display: none;
}

#programmes .card:hover > .card-body > p {
    display: block;
}

.nav-link.tab-primary,
.nav-link.tab-secondary {
    background-color: #f3f3f3;
    color: #222222 !important;
    padding: 15px;
}

.nav-pills .tab-primary.nav-link.active {
    background-color: #174895 !important;
    color: #fff965 !important;
    border-radius: 0;
}

.nav-pills .tab-secondary.nav-link.active {
    background-color: #fff965 !important;
    border-radius: 0;
}

#programmes .nav-item {
    padding-left: 0;
    padding-right: 0;
}

.navbar {
    background-color: #FFF;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    color: #333;
}

.navbar h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 10px 0 10px;
}

.navbar-header {
    float: none;
}

.navbar-brand {
    padding-top: 0;
    display: flex;
    align-items: flex-end;
}

.navbar-brand > img {
    height: 40px;
}

.navbar-brand > img:not(:last-child) {
    margin-right: 15px !important;
}

.navbar-middle {
    display: inline-block;
    margin-left: 25px;
    margin-top: 15px;
    line-height: 1.2em;
    font-size: 1.5em;
}

.navbar-middle a:hover {
    border-bottom: 1px dotted;
    color: #f9a520;
}

.navbar-right {
    margin: 5px 0 0;
    font-size: 1.8em;
    margin-left: 15px;
    text-align: right;
}

#masthead {
    padding: 0;
    /*
    background-image: url(../images/bg.jpg?v=2);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    */
    background-color: #174895;
}

.icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.icon-boxes > .icon-box {
    width: 280px;
    margin-bottom: 35px;
    text-align: center;
}

.icon-boxes > .icon-box i {
    color: #174895;
}


#contact {
    background-color: #f9a520;
}

#contact p {
    margin-bottom: 20px;
}

#contact .contact-text {
    font-size: 1.2em;
}

#contact .embed-map {
    height: 350px;
}

#footer {
    padding: 25px 0;
    background-color: #174895;
    color: #fff;
    font-size: 0.9em;
}

.powered-by {
    font-size: 13px;
}

.powered-by span {
    margin-left: 15px;
}

.sharing-icons {
    text-align: right;
}

.sharing-icons a img {
    width: 40px;
}

.d-lg-flex .map {
    width: 50%;
}

/**** POPUP Notification ****/
.popup {
    z-index: 9999;
    position: absolute;
    top: 120px;
    width: 100%;
}

.popup h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.popup-content {
    margin: auto;
    width: 600px;
    max-width: 100%;
    background: #FFF;
    border: 5px solid #CCC;
    -moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

.popup .error .popup-close {
    background: #C00;
    padding: 10px 20px;
    text-align: center;
    color: #FFF;
    cursor: pointer;
}

.popup .error .popup-close:hover {
    background: #D00;
}

.popup .success .popup-close {
    background: #0A0;
    padding: 10px 20px;
    text-align: center;
    color: #FFF;
    cursor: pointer;
}

.popup .success .popup-close:hover {
    background: #0B0;
}

#popup ul li a {
    color: #f00;
}

/**** POPUP Notification - Ends ****/

.navbar-default .navbar-nav > li > a {
    color: #830f3e;
    font-weight: bold;
    padding: 10px 8px;
}

.navbar-light .navbar-nav .nav-link {
    white-space: pre;
}

.navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:hover {
    color: #f9a520;
    background-color: #830f3e;
}

.navbar-nav {
    font-size: 15px;
}

.fa-stack {
    padding: 12px 14px;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    border: 3px solid #3296bc;
    line-height: 0.8em;
}

.navbar h5 {
    color: #830f3e;
}

h1.title {
    text-transform: uppercase;
}

h1.title:after {
    content: "";
    display: block;
    margin: 15px auto;
    border-bottom:  #174895 2px solid;
    width: 70px;
}

h1.title.text-white:after {
    content: "";
    display: block;
    margin: 15px auto;
    border-bottom:  gold 2px solid;
}

.accordion-button {
    color: #174895;
}

#who-we-are {
    background-size: cover !important;
    background: linear-gradient(23deg, #0067b3, rgba(0, 103, 179, 0.95)), url("../images/bg2-2.jpg") no-repeat fixed;
}

#what-we-offer {
    background: linear-gradient(25deg, rgba(238, 238, 238, 0.5), rgba(238, 238, 238, 0.01));
}

#why-awantec {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url("../images/bg2-2.jpg") fixed;
    background-size: cover;
}

#why .bordered {
    border: rgba(131, 15, 62, 0.2) 2px dashed;
    border-radius: 5px;
}

#carouselFacilities .d-flex {
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#carouselFacilities .d-flex > img {
    width: 250px;
    height: 140px;
    object-fit: cover;
    margin: 2px;
}

#programmes {
    background-image: url(../images/bg.jpg?v=1);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.programmes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.programmes .programme {
    width: 22%;
    margin: 10px;
    background-color: #ffffff;
    box-shadow: rgba(0,0,0,0.1) 0 0 3px;
}

.programmes .programme .img-wrap {
    border-bottom: 3px solid goldenrod;
}

.programmes .programme .text {
    padding: 15px 10px;
    color: #555555;
    font-weight: normal;
}

.programmes .programme .text > h4 {
    display: block;
    font-size: 18px;
    text-decoration: none;
    color: #174895;
    margin-bottom: 5px;
}

.programmes .programme .text .mqa {
    font-size: 13px;
    color: #666666;
}

.navbar-brand img {
    max-width: 240px;
    margin: 15px 0;
}

#programmes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#programmes .card {
    width: 280px;
    margin: 20px;
    border: none;
}

#programmes .card .card-body {
    width: 100%;
    border-radius: 5px;
    color: #ffffff;
    margin-top: -65px;
    margin-left: 25px;
}

#programmes > .card:nth-child(1n) .card-body {
    background-color: rgba(23, 72, 149, 0.98);
}

#programmes > .card:nth-child(2n) .card-body {
    background-color: rgba(34, 180, 155, 0.98);
}

#programmes > .card:nth-child(3n) .card-body {
    background-color: rgba(28, 165, 227, 0.98);
}

#programmes > .card .card-body {
    transition: ease all 0.1s;
}

#programmes .card .card-title {
    font-size: 18px;
    min-height: 65px;
    text-shadow: rgba(0, 0, 0, 0.2) 1px 1px 3px;
}

#programmes > .card:hover .card-body {
    transform: scale(1.05);
    transition: ease all 0.2s;
}

#why .card-body {
    min-height: 400px;
}

.icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.icons .icon {
    width: 150px;
    padding: 5px;
}

.icons h5 {
    margin: 15px 0;
    font-size: 16px;
}

#contact2 .card-text {
    min-height: 200px;
    box-sizing: border-box;
}

#contact2 .card-title {
    min-height: 50px;
}

.btn i {
    animation-name: beating;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    transition: ease all;
}

/* Medium */
@media (max-width: 1199px) {

    .navbar > .container {
        width: 100%;
    }

    .navbar-middle {
        margin-left: 30px;
        margin-top: 20px;
        line-height: 1.2em;
        font-size: 1.4em;
    }
}

@media (min-width: 1199px) {

    #hidden-title {
        display: none;
    }

    #programmes .nav-pills .nav-item,
    #programmes .nav-pills .nav-item {
        display: flex;
        align-items: end;
    }

    #programmes .nav-pills .tab-primary.nav-link.active,
    #programmes .nav-pills .tab-secondary.nav-link.active {
        padding-top: 25px;
        font-size: 18px;
    }

}


@media (max-width: 1137px) {
    #hidden-nav {
        display: none;
    }

    .navbar h3 {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .text-md-left {
        text-align: left !important;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0;
    }
}

/* Small */
@media (max-width: 991px) {
    #why-awantec .item-text p {
        display: none;
    }

    .boxes2 .item {
        width: 100%;
    }

    .cta-half {
        display: block;
    }

    .cta-half > div {
        width: 100%;
    }

    .navbar-brand > img {
        height: auto;
    }

    .promo-wrap {
        display: none;
    }

    .programmes .programme {
        width: 45%;
    }

    .mobile-badges {
        list-style: none;
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-badges > li {
        color: #ffffff;
        background-color: #174895;
        padding: 5px  8px;
        margin: 2px;
    }

    #why {
        text-align: center;
    }

    #why ul {
        list-style: none;
        padding-left: 0;
    }

    .navbar-middle {
        margin-left: 0;
        font-size: 1.2em;
    }

    .navbar-right {
        font-size: 1.6em;
        margin-top: 0.3em;
    }
    .nav-link.tab-primary, .nav-link.tab-secondary {
        font-size: 16px;
        padding: 15px 15px;
    }
}

@media (max-width: 867px) and (min-width: 599px) {
    .navbar h3 {
        display: none;
    }

    .navbar-middle {
        margin: 0;
        padding: 15px;
        font-size: 1.6em;
        float: right;
        text-align: right;
    }
}

/* Extra Small */
@media (max-width: 767px) {

    #why .card-body {
        min-height: unset;
    }

    .promo-wrap {
        display: block;
    }

    .flag {
        margin-top: -50px;
    }

    .programmes .programme {
        width: 100%;
        margin: 5px 15px;
    }

    .promo-wrap {
        width: 65%;
    }

    .flag-wrap {
        width: 35%;
    }

    .flag .flag-text {
        font-size: 28px;
        line-height: 1em;
    }

    .flag .flag-text,
    .flag .flag-text:after {
        width: 120px;
    }

    .flag .text1 {
        font-size: 26px;
    }

    .flag .text2 {
        font-size: 14px;
    }

    section#programmes {
        padding-left: 0;
        padding-right: 0;
    }

    section#programmes .row > * {
        padding-left: 0;
        padding-right: 0;
    }

    #programmes .nav-item,
    #programmes .nav-link {
        width: 100%;
    }

    #programmes .nav-link {
        border: 1px solid #ffffff;
        border-radius: 5px;
    }

    #programmes .nav-item {
        padding: 5px;
    }

    #programmes .nav-link.active {
        font-size: 16px;
    }

    .d-lg-flex .map {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    body {
        margin-top: 0;
    }

    #mainform {
        margin-bottom: -25px;
    }

    .navbar-brand {
        width: 250px
    }

    .navbar-middle {
        margin: 0;
        padding: 15px;
        float: right;
        text-align: right;
    }

    .navbar-right {
        display: none;
    }

    #progs .tab-content {
        padding-top: 20px;
    }

    .powered-by, .sharing-icons {
        text-align: center;
        margin: 10px 0;
    }

    .powered-by span {
        display: block;
    }

    #carousel .carousel-caption {
        padding: 30px 20px 50px;
    }

}

/* Super Extra Small */
@media (max-width: 599px) {

    .navbar {
        position: relative;
        height: auto;
        margin-bottom: 0;
    }

    .navbar-middle br {
        display: none;
    }

    .navbar-brand {
        float: none;
        display: block;
        width: 100%;
        text-align: center;
    }

    .navbar-brand > img {
        display: inline;
        width: 48%;
        height: auto;
    }

    .navbar-middle {
        float: none;
        text-align: center;
        display: block;
        margin-top: 10px;
        font-size: 1.2em;
    }

    .navbar-right {
        float: none !important;
        text-align: center;
        display: block;
        margin-top: -20px;
        padding: 10px;
    }

    #progs .col-xs-6 {
        width: 100%;
    }

}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-collapse {
        justify-content: flex-end;
    }
}

@media(min-width: 1200px) {

    .navbar {
        transition: ease all 0.5s;
        padding-top: 15px;
    }

    .glow {
        color: yellow;
        animation-name: glowing;
        animation-iteration-count: infinite;
        animation-duration: 3s;
        transition: ease all;
        text-transform: uppercase;
        display: block;
        font-weight: bold;
        font-size: 20px;
    }

    nav#navbar.scrolled .navbar-brand img {
        transition: ease all 1s;
        max-height: 60px;
    }

    nav#navbar.scrolled {
        transition: ease all 0.5s;
        padding: 15px 0;
    }



    .nav-item {
        padding-left: 10px;
        padding-right: 10px;
    }
    .navbar-nav > .nav-item:not(:last-child) {
        border-right: rgba(131, 15, 62, 0.15) 1px dotted;
    }

    .navbar-nav > .nav-item:hover {
        background-color: rgba(23, 72, 149, 0.05);
    }

    .navbar-nav .nav-link:hover {
        color: #174895 !important;
    }
}
