*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
}
.header{
    background-color: #fff;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 2%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 100px;
    height: 80px;     
}
nav .image{
    width: 350px;
    padding-left: 10px;
    display: block; 
    margin: auto; 
}

.nav-links{
    flex: 1;
    text-align: right;
    overflow: hidden;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color:black;
    text-decoration: none;
    font-size: 13px; 
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
nav .fa{
    display: none;
}
    .text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.here-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.here-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
    .mySwiper {
      width: 100%;
      height: 100vh;
    }
    .swiper-slide {
      text-align: center;
      font-size: 18px;
      justify-content: center;
      align-items: center;
      background-size: cover;
      background-position: 80% center;
      overflow: hidden;
      width: 100%;
            height: 100%;
    }
    .slide-1 {
        background-image: url('images/slide1.jpg');
      /* background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url('images/slide1.jpg'); */
    }
    .slide-2 {
      background-image: url('images/slide2.JPG');
    }
    .slide-3 {
      background-image: url('images/M2.jpg');
    }

    /*----course------*/
.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 45%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.course-col img{
    width: 90%;
    height: 80%;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}

/*-----campus-----*/
.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.campus-col img{
    width: 350px;
    height: 300px;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
}

/*-----Call to action-----*/
.cta{
   margin: 100px auto;
   width: 80%;
   background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/banner2.jpg);
   background-position: center;
   background-size: cover;
   border-radius: 10px; 
   text-align: center;
   padding: 100px 10px;
}
.cta h1{
    color: #fff;
    font-size: 25px;
    margin-bottom: 40px;
    padding: 0;
}

/*--events--*/
.our-events h1{
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    background-color: #f0f0f0;
    padding-top: 30px;
}
.events {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #f0f0f0; /* Optional: Set a background color for the page */
  }
  table {
    text-align: center;
    margin-top: 20px; /* Adjust margin as needed */
    border-spacing: 20px; /* Adds spacing between cells */
  }
  td {
    position: relative;
    width: 400px; /* Adjust the width of the cells */
    height: 300px; /* Adjust the height of the cells */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  td:hover .overlay {
    opacity: 1;
  }
  .text {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
  }
  .button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white; 
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
  }
  .button:hover {
    background-color: #2980b9;
  }
  
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

  

/*------facilities-------*/
.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.facilities img{
    width: 400px;
    height: 350px;
    padding: 10px;
    border-radius: 10px;
}

/*-----Footer-----*/
.footer{
    width: 100%;
    position: absolute;
    padding: 30px 20px;
    background-color: #000;
    font-size: 13px;
    line-height: 20px;
}
.footer .col{
    flex-basis: 25%;
    padding: 10px;
    flex-grow: 1;
    margin-bottom: 20px;
}
.footer .col:nth-child(3){
    flex-basis: 15%;
}
.footer .row{
    align-items: flex-start;
    padding: 10px 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
}
.footer h5{
    font-size: 20px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600; 
    color: #fff;  
}
.footer h4{
    font-size: 20px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600; 
    color: #f44336;  
}
.footer p{
    color: #fff;
}
.footer img{
    align-content: center;
    width: 100px;
    height: 80px;
}
.social-icons .fab{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    background: #fff;
    margin-right: 15px;
    cursor: pointer;
}
hr{
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 5px auto;
}
.copyright{
    text-align: center;
}


/*----mobile view----*/
@media only screen and (max-width: 600px){

    .responsive-element {
        width: 100vw; /* Adjusting width for smaller screens */
        max-width: 100%; /* Optional: set maximum width */
      }
    .text-box h1{
        font-size: 20px;
    }
    .mySwiper {
        height: 70vh;
      }
      .swiper-slide {
        font-size: 16px;
        background-position: center;
      }
    .nav-links.responsive{
        display: block;
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: 0;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .image{
        width: 200px;
    }
    nav .fa{
        display: block;
        color: #000;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
    .nav-links{
        display: none;
    }
    .row{
        flex-direction: column;
    }
    img{
        width: 200px;
    }
    .swiper-container{
        width: 100%;
        background-size: cover;
    }
    .here-btn{
        flex-direction: column;
        padding: 10px;
    }
    .facility-col img{
        width: 250px;
        height: 250px;
    }
    .campus-col img{
        width: 250px;
        height: 250px;
    }
    .cta h1{
        font-size: 15px;
    }
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
      }
      td:hover .overlay {
        opacity: 1;
      }
    .footer{
        bottom: unset;
    }
    .footer .col{
        flex-basis: 100%;
    }
    .footer .col:nth-child(3){
        flex-basis: 100%;
    }
}