:root{
	--common-color: orangered;
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body{
	font-family: sans-serif;
}

/*----- Header Starts From Here -----*/

.header{
	background-image: linear-gradient(to top,rgba(4, 1, 10, .7),rgba(4, 1, 30, .9)), url(images/msu.jpg);
	height: 100vh;
	width: 100%;
	background-position: center;
	background-size: cover;
	position: relative;
	color: whitesmoke;
	box-shadow: 3px 3px 15px gray;
}
nav{
	display: flex;
	justify-content: space-between;
	padding: 1.5% 6% 1% 3%;
	align-items: center;
}
.logo{
	width: 150px;
}
.navlinks ul li{
	list-style: none;
	display: inline-block;
}
.navlinks ul li a{
	text-decoration: none;
	color: whitesmoke;
	font-size: 13px;
	padding: 10px 20px;
}
.navlinks ul li::after{
	content: '';
	width: 0%;
	height: 3px;
	border-radius: 20px;
	display: block;
	background-color: var(--common-color);
	margin:3px auto;
	transition: .4s;
}
.navlinks ul li:hover::after{
	width: 65%;
}
.icon{
	font-size: 45px;
	display: none;
}
.heading{
	/*width: 100%;*/
	height: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px;
}
.heading h1{
	font-size: 55px;
	margin-bottom: 20px;
}
.heading p{
	font-size: 14px;
	margin-bottom: 30px;
	line-height: 18px;
}
.heading button{
	padding: 10px 25px;
	background: transparent;
	border: 2px solid whitesmoke;
	color: whitesmoke;
	cursor: pointer;
	transition: .6s;
	font-weight: bold;
}
.heading button:hover{
	background-color: var(--common-color);
	border: 2px solid var(--common-color);
}

/* ---------- Courses Section ----------- */

.campus, .courses, .facility, .review{
	width: 85%;
	margin: auto;
	text-align: center;
	margin-top: 8%;
}
.courses h1, .campus h1, .facility h1, .review h1{
	margin-bottom: 	1%;
	font-size: 36px;
	color: #333;
}
.courses p, .campus p, .facility p, .review p{
	color: gray;
	font-size: 14px;
	margin-bottom: 2%;
	line-height: 22px;
}
.row{
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}
.course-column{
	flex-basis: 30%;
	background-color: #ffebea;
	padding: 30px;
	border-radius: 10px;
	margin-top: 25px;
	transition: .3s;
}
.course-column h3{
	font-weight: 700;
	margin-bottom: 15px;
}
.course-column p{
	font-size: 14px;
	color: gray;
}
.course-column:hover{
	transform: scale(1.01,1.01);
	box-shadow: 2px 2px 15px gray;
}

/* ---------- Campus Start From Here ---------- */

.campus-column{
	flex-basis: 30%;
	height: 500px;
	position: relative;
	border-radius: 10px;
	margin-top: 30px;
	overflow: hidden;
}
.campus-column img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
	border: 2px solid gray;
}
.layer{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	transition: .5s;
}
.layer h2{
	color: whitesmoke;
	position: absolute;
    text-align: center;
    bottom: 0%;
	opacity: 0;
	left: 30%;
	transition: .3s;
}
.layer:hover{
	background: rgba(226, 0, 0, .7);
}
.layer:hover h2{
	bottom: 45%;
	opacity: 1;
}

/* ---------- Our Facilities ---------- */


.facility-column{
	width: 45%;
	height: 410px;
	padding: 15px;
	margin-top: 20px;
	transition: .3s;
}
.facility-column:hover{
	transform: scale(1.01,1.01);
	box-shadow: 2px 2px 15px gray;
}
.facility-column img{
	width: 100%;
	height: 75%;
	border-radius: 10px;
	box-shadow: 2px 2px 10px gray;
}
.facility-column h3,.facility-column p{
	margin-top: 10px;
	line-height: 18px;
}

/*---------- Reviews Section ----------*/

.review-columns{
	flex-basis: 45%;
	background-color: #ffebea;
	padding: 20px;
	margin-bottom: 20px;	
	border-radius: 10px;
	transition: .3s;
}
.review-columns img{
	width: 70px;
	height: 70px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
}
.review-columns i{
	color: gold;
	font-size: 23px;
	background-color: white;
	padding: 3px;
	border-radius: 5px;
}
.review-columns:hover{
	transform: scale(1.01,1.01);
	box-shadow: 2px 2px 15px gray;	
}

/* ----------Last Section ---------- */

.last-section{
	width: 85%;
	height: 50vh;
	padding: 7vh 13vw;
	color: white;
	background-image: linear-gradient(rgba(0, 0, 0, .8),rgba(0, 0, 0, .8)), url(images/toppers.jpg);
	background-size: cover;
	background-position: center;
	margin: auto;
	text-align: center;
	margin-top: 8%;
}

.last-section h2{
	font-size: 30px;
	line-height: 40px;
	margin-top: 45px;
}
.last-section a{
	padding: 10px 20px;
	color: whitesmoke;
	border: 2px solid whitesmoke;
	margin-top: 35px;
	display: inline-block;
	text-decoration: none;
	font-size: 14px;
	transition: .5s;
}
.last-section a:hover{
	border: 2px solid var(--common-color);
	background-color: var(--common-color);
}


/* ---------- Footer ---------- */

footer{
	width: 100%;
	text-align: center;
	background-color: whitesmoke;
	padding: 5vh 10vw;
	margin-top: 8%;
}

footer h1{
	font-size: 30px;
	margin-bottom: 15px;
}

footer p{
	margin-top: 20px;
	line-height: 20px;
	font-size: 14px;
}

.media{
	width: 100%;
	margin-top: 30px;
}
.media img{
	width: 30px;
	height: 30px;
	object-fit: contain;
	padding: 4px;
}


/* ------------------------------------------------------------ */
/* ---------- About Us Page ----------------------------------- */

.common-header{
	height: 60vh;
	background-image: linear-gradient(to top,rgba(4, 1, 10, .6),rgba(4, 1, 30, .9)), url(images/toppers.jpg);
	object-position: top;
}
.common-header h1{
	text-align: center;
	margin-top: 90px;
	font-size: 40px;
}

/* ------------ About First section ------------- */
.about-first-section{
	width: 85%;
	margin: 10% auto;
	text-align: left;
}
.about-column{
	flex-basis: 48%;
	padding: 10px 20px;
}
.about-column h1{
	font-size: 35px;
	line-height: 40px;
}
.about-column p{
	line-height: 22px;
	margin-top: 20px;

}
.about-column button{
	padding: 10px 20px;
	border: 2px solid var(--common-color);
	color: var(--common-color);
	background-color: white;
	cursor: pointer;
	margin-top: 30px;
	transition: .5s;
	font-weight: bold;
}
.about-column button:hover{
	background-color: var(--common-color);
	color: whitesmoke;
}
.about-column img{
	width: 100%;
	height: 100%;
}

/* ---------------------------------------------------- */
/* -------------------- Blogs Page ---------------------*/

.blog-content{
	width: 85%;
	margin: 80px auto;
	
}

.left-part{
	flex-basis: 60%;
}
.left-part img{
	width: 100%;
}
.left-part h2{
	margin: 30px 0;
}
.left-part p{
	font-size: 14px;
	color: #888;
}
.comment{
	padding: 30px 20px;
	border: 1px solid gray;
	margin: 30px 0;
}
.comment input,textarea{
	width: 100%;
	height: 35px;
	background-color: whitesmoke;
	border: none;
	margin-bottom: 20px;
	border-radius: 5px;
	padding: 5px 15px;
	font-weight: 600;
}
.comment textarea{
	height: 100px;
	resize: none;
	border: none;
	padding: 15px;
}
.comment button{
	padding: 10px 20px;
	color: var(--common-color);
	border: 2px solid var(--common-color);
	background-color: white;
	transition: .4s;
	cursor: pointer;
}
.comment button:hover{
	background-color: var(--common-color);
	color: whitesmoke;
}

.right-part{
	flex-basis: 35%;
}
.right-part h2{
	text-align: center;
	padding: 12px 0;
	margin-bottom: 20px;
	font-size: 20px;
	background-color: var(--common-color);
	color: white;
}
.right-part div{
	display: flex;
	justify-content: space-between;
	padding: 12px 5px;
	color: #666;
}


/* ---------------------------------------------------- */
/* -------------------- Contact Us Page ---------------------*/
.contact-content{
	width: 85%;
	margin: 80px auto;
}
.contact-content iframe{
	width: 100%;
	height: 300px;
	margin-bottom: 20px;
}
.contact-info{
	flex-basis: 50%;	
}
.contact-info div{
	display: flex;
	margin: 35px 0;
	width: 100%;
}
.contact-info img{
	width: 22px;
}
.info{
	margin-left: 30px;
	display: inline-block;
	color: #555;
	line-height: 24px;
}
.contact-form{
	flex-basis: 50%;
	margin-top: 35px;
}
.contact-form h3{
	text-align: center;
	background-color: var(--common-color);
	padding: 10px 0;
	color: white;
	margin-bottom: 20px;
}
.contact-form input,textarea{
	height: 35px;
	width: 100%;
	border: 1px solid gray;
	margin: 10px 0;
	padding: 0 15px;
	font-weight: 600;
	color: #666;
}
.contact-form textarea{
	height: 100px;
	resize: none;
	background-color: white;
}
.contact-form button{
	padding: 10px 20px;
	color: var(--common-color);
	border: 2px solid var(--common-color);
	background-color: white;
	transition: .4s;
	cursor: pointer;
}
.contact-form button:hover{
	background-color: var(--common-color);
   	color: white;
}

/*------- Media queries -------*/

@media (max-width: 800px){
	.heading h1{
		font-size: 35px;
    }
}

@media (max-width: 700px){
	.heading{
		padding: 20px;
	}
	.heading h1{
		font-size: 25px;
    }
    .heading p{
		font-size: 12px;
    }

    .navlinks ul li{
    	display: block;
    	margin-top: 15px;
    }
    .navlinks ul li a{
    	width: 100%;
    	display: block;
    }
    .navlinks{
    	position: fixed;
    	height: 100vh;
    	width: 200px;
    	background-color: var(--common-color);
    	top: 0;
    	right: -200px;
    	text-align: left;
    	transition: .4s;
    	z-index: 2;
    }
    .icon{
		display: block;
    }
    .navlinks strong{
    	margin: 10px 0 0 10px;
    	width: 100%;
    }
    .row{
    	flex-direction: column;
    }

    .campus h1, .courses h1, .facility h1, .review h1{
    	font-size: 30px;
    	margin-top: 60PX;
    }
    .layer h2{
    	left: 35%;
    }
    .facility-column{
	width: 100%;
    }
    .last-section{
    	padding: 4vh 5vw;
    }
    .last-section h2{
    	font-size: 20px;
    }

    footer h1{
    	font-size: 18px;
    }
    footer p{
    	font-size: 10px;
    }

    /* --------------- About Us Queries ------------- */
    .common-header h1{
		margin-top: 200px;
		font-size: 30px;
	}
    .about-row{
		flex-direction: column-reverse;
    }
    .about-column h1{
		font-size: 25px;
		line-height: 30px;
	}
/* ------------------- Contact Page ------------------- */
	.contact-info span h3{
		font-size: 17px;
	}
}