*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #eaf5ff;
    font-size: 20px;
}
a {
    text-decoration: none;
}
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)),url(images/headerbgimg.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
/*nav img{
    width: 150px;
}*/
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li .active {
    border-bottom: 1px solid #f44336;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
}
.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.4s;
}
.nav-links ul li:hover::after {
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1 {
    font-size: 3em;
    margin: 0.8em 1em;
}
.text-box p{
    margin: 10px 0 40px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    margin: 5px;
    padding: 10px 30px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .menu-close{
    display: none;
}
nav .menu-img {
    display: none;
    width: 40px;
}
#h-slide::before {
    width: 70%;
    height: 100px;
    position: absolute;
    content: "The One and Only";
    color: rgb(240, 78, 78);
    font-size: 1.5em;
    top: 84%;
    left: 15%;
    text-align: center;
    animation-name: disp-slide;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    
}

@keyframes disp-slide {
    0% {
        color: #eaf5ff;
        content: "The Citadale of Learning";
    }
    20% {
      color: #245324;
      content: "Top notch Lecturers";
    }
    40% {
      color: yellow;
      content: "Serene Campus";
    }
    60% {
      color: #f44336;
      content: "Modern Fascilities";
    }
    80%{
        color: #d3a39f;
        content: "Proximity to the City";
    }
    100% {
        color: #36d8f4;
      content: "Happy Students";
    }
}

@media(max-width: 650px){
    .text-box h1 {
        font-size: 2em;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .menu-img{
        display: block;
        margin: 10px;
        cursor: pointer;
    }
    nav .menu-close {
        display: block;
        margin: 10px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
    .hero-btn {
        border-radius: 10px;
    }
    #h-slide::before {
        top: 80%;
        left: 20%;
    }
}

/* */
.course{
    text-align: center;
    padding-top: 50px;
}
.news-n-events {
    padding-bottom: 20px;
    padding-top: 0;
   background: #d8ebfd;
}
.news-n-events a {
    text-decoration: none;
}
h1 {
    padding-top: 20px;
    font-size: 2em;
    font-weight: 600;
}
p {
    color: #414040;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.course-h {
    width: 80%;
    text-align: center;
    margin: 1.2em auto;
}
.course-h img {
    width: 70%;
}
.course-h h3 {
    margin-top: 1.2em;
}
.course-h p {
    font-size: 1.2em;
    line-height: 1.2em;
}
.row{
    margin-top: 2%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.course .row h2 {
    display: block;
    width: 90%;
    margin: 1.5em auto 1em;
    padding-left: 0.2em;
    background-color: rgba(166, 168, 173, 0.5);
}
.course-col{
    width: 46%;
    background: #fff3f3;
    border-radius: 10px;
    margin: 2%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.course-col h3 a{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    text-decoration: none;
}
.course-col ul {
    list-style: none;
}
.course-col ul a {
    text-decoration: none;
    color: blue;
    margin: 1.5em 1em;
}
.course-col ul a:hover {
    font-weight: bold;
}
.course-col:hover {
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}
@media(max-width: 700px){
    .course-h {
        text-align: justify;
    }
    .course-h h1 {
        font-size: 1.7em;
        text-align: center;
    }
    .row {
        flex-direction: column;
    }
    .course-col {
        width: 96%;
        text-align: justify;
    }
}

/* campus */
.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 30px;
}
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.campus-col img{
    width: 90%;
    border-radius: 10px;
    display: block;
}
.layer {
    background: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
/*.layer:hover {
    background: rgba(226,0,0,0.5);
}*/
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}
/* facilities */
.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
   
}
.facilities-col {
    flex-basis: 48%;
    border-radius: 10px;
    margin-bottom: 2%;
    text-align: left;
}
.facilities-col img{
    width: 94%;
    max-height: 20rem;
    border-radius: 10px;
}
.facilities-col p{
    padding: 10px;
}
.facilities-col h3{
    margin-top: 16px;
    margin-left: 15px;
    text-align: left;
}

.lecturers {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 30px;
}
.lect-pic {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.each-lect {
    width: 25%;
    margin: 1em;
    flex-direction: column;
}
.lect-pic img {
    width: 100%;
    height: 18rem;
    border-radius: 10px;
}
@media(max-width: 700px) {
    .each-lect {
        width: 90%;
        margin: 15px auto;
    }
}
/*  testimonials */
.testimonials{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 60px;
}
/*testimonials*/
.testimonials{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.testimonials-col{
    flex-basis: 44%;
    background: #fff3f3;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 5%;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 40px;
    margin-left: 5px; margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonials-col .star{
    display: flex;
    margin: 0;padding: 0;
}
.testimonials-col .star img{
    width: 20px;
    height: 20px;
}
/* callto action*/
.cta{
    margin: 100px auto;
    width: 80%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(images/headerbgimg.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}
/*Awards*/
.awards {
    padding: 20px 10px;
    text-align: center;
}
.d-awards {
    padding: 40px 10px;
    margin: 0 5%;
    text-align: start;
}
/*footer*/
.footer{
    width: 100%;
    text-align: center;
    padding: 20px 0;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 10px;
    font-weight: 600;
}
.icons .fa{
    color: #f44336;
    margin: 0 13px;
    padding: 18px 0;
    cursor: pointer;
}










@media(max-width: 650px){
    .testimonials-col img{
    margin-left: 0px; margin-right: 10px;
   }
   .a-lastsect {
    width: 100%;
    text-align: start;
    padding: 20px 0;
}
}


























