body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*padding: 10px 20px;*/
  background-color: #edfff5;
  border-bottom:5px solid green;
}

.logo img {
  height: 70px;
}

.title {
  text-align: left;
  margin:20px;
  color:green;
}
.title h2{
    margin:0;
    padding:0;
}

nav {
  flex: 1;
  text-align: right;
}

/* Navbar menu */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

nav ul li {
  position: relative;
  padding: 5px 10px 5px 10px;
   border-radius: 5px;
    text-align: left;
}

nav ul li a {
  text-decoration: none;
  color: green;
  font-weight: bold;
}

nav ul li:hover .menu-main-ahref {
  color: white;
}

nav ul li:hover {
  background-color: #64e764;
}

/* Sub menu */
nav ul .sub-menu {
  width: 200px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  border: 1px solid #64e764;
  background-color: #f2f2f2;
  z-index: 1;
}

nav ul .sub-menu li {
  padding: 15px;
  border-bottom: 1px solid lightgreen;
}

nav ul .sub-menu li:hover {
  background-color: #64e764;
}

nav ul .sub-menu li:hover a {
  color: white;
}

nav ul li:hover .sub-menu {
  display: block;
}


/*image slider*/


.slider {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}


/*service*/

main {
  padding: 20px;
}

.service-heading h3{
  text-align: center;
  color: green;
  padding: 5px;
}

.service-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #d4fce8;
}

.service-card {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin: 5px;
}

.service-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.service .btn {
  display: inline-block;
  background-color: green;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  width: 90%;
}

.service .btn:hover {
  background-color: #444;
}

/*total-student*/

.total-student{
  display: flex;
  text-align: center;
  background-color: green;
}
.total-student div{
  width: 25%;
  margin: 10px;
}
.total-student h1{
  font-size: 40px;
  color: white;
  padding: 2px;
  margin: 2px;
}
.total-student span{
  display: inline-block;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  width: 90%;
  border: 1px solid white;
}



/*course-section*/

.welcome-text{
  background-color: #167055;
  color: white;
  padding: 10px;
  margin-top: 10px;
}
.welcome-text p{
  font-size: 16px;
  line-height: 1.5;
}


.course-section {
  display: flex;
  justify-content: space-between;
  background-color: lightgreen;
}

.course-card {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  flex-basis: calc(25% - 20px);
}
.course-section img{
  max-width: 100%;
}

.course-card h2 {
  color: #333;
  margin-bottom: 10px;
}

.course-card p {
  color: #666;
}

.courses-main .btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.courses-main .btn:hover {
  background-color: green;
}

.why-choose{
  align-items: center;
  text-align: center;
  display: flex;
  background-color: lightgreen;
  height: 400px;
}
.why-choose div{
  width: 50%;
}
.why-choose img{
  height: 400px;
}


/*computer main page about-kgnt-main*/

.about-kgnt-main {
  display: flex;
  background: #cfffe8;
}
.about-kgnt-main div{
  margin: 10px;
}
.about-kgnt-main iframe {
  width:360px;
  height:215px;
}
.about-kgnt-main span{
  color: black;
  font-size: 18px;
  line-height: 1.5;
}



.div-mission-vision-container{
  display: flex;
  margin: 20px 40px 10px 40px;
}
.div-mission-vision-container div{
  background: #defaed;
  margin: 5px;
  border: 1px solid gray;
  padding: 4px;
  width: 50%;
}

.div-mission-vision-container h2{
  background-color: #0492c2;
  padding: 5px 10px;
  color: white;
  border-radius: 5px;
}
.div-mission-vision-container p{
  background: #fafffe;
  padding: 5px;
}


/*login/registration/staff login page start...*/


.login-container {
  width: 400px;
  margin: 50px auto;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 30px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 20px;
}

button {
  background-color: green;
  color: #fff;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;  
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #444;
}

/*placement page start...*/

.placement-section {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.placement-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.placement-section p {
  margin-bottom: 20px;
}

.placement-stats {
  display: flex;
  justify-content: space-between;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  flex: 1;
  margin-right: 20px;
}

.stat-box:last-child {
  margin-right: 0;
}

.stat-box h3 {
  margin: 0;
}

.stat-box span {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.placement-testimonials {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
}

.testimonial {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
}

.testimonial p {
  flex: 1;
  margin: 0;
}

.testimonial span {
  font-style: italic;
}


/*reach us page start....*/



.contact-section {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-info h2, .contact-form h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 0;
  margin-bottom: 10px;
}

.contact-form label, .contact-form textarea, .contact-form input[type="email"], .contact-form input[type="text"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 300px;
  padding: 10px 20px;
  background-color: green;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #444;
}



/*student-profile page start...*/




.student-header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.student-header .profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-header .profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
}

.navbar {
  background-color: #444;
  padding: 10px 0;
  text-align: center;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
}

.navbar li {
  display: inline;
  margin-right: 20px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}


section {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

section ul {
  list-style-type: disc;
  padding-left: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  padding: 8px;
  border-bottom: 1px solid #ccc;
}


/*computer galler page start....*/


.gallery-section {
  margin-bottom: 40px;
}

.gallery-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/*computer course page start....*/


.faculty-main {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.faculty-card {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 10px;
  width: 300px;
  text-align: center;
}

.faculty-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.faculty-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}


/*All pages footer start .....*/


footer {
  text-align: center;
  background-color: #333;
  color: #fff;
  padding: 10px;
}
